• Home
  • Plugins
    • Use Any Font
    • WP Masonry Layout
    • Jquery Validation For Contact Form 7
    • Real Email Checker
    • Any Mobile Theme Switcher
    • Block Specific Plugin Updates
    • Featured Image in RSS Feed
    • Add Tags And Category To Page
    • Remove Admin Bar For Client
  • Support Forum
  • Blog
  • Contact
  • Home
  • Plugins
    • Use Any Font
    • WP Masonry Layout
    • Jquery Validation For Contact Form 7
    • Real Email Checker
    • Any Mobile Theme Switcher
    • Block Specific Plugin Updates
    • Featured Image in RSS Feed
    • Add Tags And Category To Page
    • Remove Admin Bar For Client
  • Support Forum
  • Blog
  • Contact
  • You are here:
  • Home
  • Any Mobile Theme Switcher
  • Color & Styling of link

Home › Forums › Any Mobile Theme Switcher › Color & Styling of link

This topic contains 7 replies, has 2 voices, and was last updated by  Dinesh 5 years ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • August 14, 2013 at 3:50 am #1800

    Christina

    For the life of me I can’t figure out how to change the styling of the links on the mobile version of the site.

    This is my code

    <a class="switchmobile" href="site.com/?am_force_theme_layout=mobile">Switch To Mobile Version</a>
    
    The following is a bit overboard but I was trying everything I could think of
    

    a.switchmobile:link, a.switchmobile:visited, a.switchmobile:active, a.switchmobile:hover {
    font-size: 36px !important;
    color: #ff0000 !important;
    text-decoration: none;
    }`

    The above works on the desktop theme but when I change layout=mobile to layout=desktop, then view the mobile version, the css doesn’t work.

    I’ve also tried using a.am-switch-btn in the CSS.

    In short:
    CSS works when viewing desktop version
    CSS does not work when viewing mobile version
    Codes are 99% identical

    August 14, 2013 at 3:53 am #1801

    Christina

    Blah ….. didn’t close the code box. Can’t find an edit button so I’ll try that again.

    Switch To Mobile Version - See more at: https://dineshkarki.com.np/forums/topic/color-styling-of-link#sthash.thZeUCtQ.dpuf

    a.switchmobile:link, a.switchmobile:visited, a.switchmobile:active, a.switchmobile:hover {
    font-size: 36px !important;
    color: #ff0000 !important;
    text-decoration: none;
    } - See more at: https://dineshkarki.com.np/forums/topic/color-styling-of-link#sthash.thZeUCtQ.dpuf
    August 14, 2013 at 3:54 am #1802

    Christina

    *laughs* I give. Hopefully someone can translate that and help.

    Again,
    CSS works when viewing desktop version
    CSS does not work when viewing mobile version
    Codes are 99% identical

    August 14, 2013 at 1:06 pm #1804

    Dinesh
    Keymaster

    Can you send me your site url ?

    August 14, 2013 at 3:11 pm #1806

    Christina

    Can I send it via email or pm? Don’t want the url out for public viewing.

    August 15, 2013 at 3:31 am #1810

    Dinesh
    Keymaster

    Hi Christina,

    Thanks for your url.

    I have found that you are using the wrong css selector based on your element structure as below.

    Switch To Desktop Version

    The css selector should be like this.
    .switchmobile a:link, .switchmobile a:visited, .switchmobile a:active, .switchmobile a:hover { YOUR CSS STYLING GOES HERE}

    Hope this help.

    Thanks

    August 15, 2013 at 3:51 am #1812

    Christina

    Dangit. I swear I tried that. *laughs* .class a:link is how I normally write all of my code so I wonder what I’d written before that made it not work.

    At any rate, it’s fixed now. Thanks a bunch!

    August 15, 2013 at 3:52 am #1813

    Dinesh
    Keymaster

    🙂

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Color & Styling of link’ is closed to new replies.

Our Plugins
  • Use Any Font
  • WP Masonry Layout
  • Jquery Validation For Contact Form 7
  • Real Email Checker
  • Any Mobile Theme Switcher
  • Block Specific Plugin Updates
  • Featured Image in RSS Feed
  • Add Tags And Category To Page
  • Remove Admin Bar For Client
Support Forum
  • Add Tags And Category to Page and Post Types
  • Any Mobile Theme Switcher
  • Block Plugin Updates
  • Email Checker
  • Featured Image in RSS Feed
  • Jquery Validation for Contact Form 7
  • Use Any Fonts
Scroll
Support Forums
  • Add Tags And Category to Page and Post Types
  • Any Mobile Theme Switcher
  • Block Plugin Updates
  • Email Checker
  • Featured Image in RSS Feed
  • Jquery Validation for Contact Form 7
  • Use Any Fonts
Recent Topics
  • Things don't appear to be working…
  • can't contribut
  • Menu Font
  • Multibple custon code validation
  • no fonts upload
  • error messages of missing required checkbox
  • One of the plugins won't block
Testing Platform Partner
Header logo

 

Follow Us
@2017 © Dnesscarkey