Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #704938

    Hello,
    On this site (http://jeanhoefling.com/) I added a custom social icon to the header and it looks great, except when you scroll and the sticky header activates – I can’t figure out how get my custom icon’s color to be blue like the other social icons in the sticky header. Can you help, please?

    Thanks!

    #705009

    Hey Taryn!

    You had added your icon as background image. Please add following code to Quick CSS to change the background image to blue one on hover

    #top #wrap_all .av-social-link-goodreads:hover a:before { 
    background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png); 
    } 

    Best regards,
    Yigit

    #705073

    Sorry – that is not what I meant. When you pull up the site, the social links in the top right are as they should be – the hover color is correct. What I mean is when you start to scroll down and the sticky header takes effect – when that happens, the other social icons are blue (before any hovering), but the custom one I added is still white. When you hover the custom one, the background color is still correct, it’s before any hovering takes place – it’s white, so it blends in with the sticky header background which is also white. Does that make sense?

    #705096

    Hi!

    Please use following code instead

    .header-scrolled .av-social-link-goodreads:hover a { 
    background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png) !important; 
    } 

    Image needs to be changed when scrolled down, not on hover. My bad :)

    Regards,
    Yigit

    #705139

    Hmm – nothing is happening. I don’t need a hover icon, so I also tried the code without the “hover” and still nothing.

    When you scroll and the sticky header activates, the white social icons turn to blue so you can see them against the white background of the sticky header. My custom icon is not doing this. I have a blue version of the custom icon loaded if needed. It is not the hover I’m having trouble with, it is the icon itself being white against the white background of the sticky header, so you can’t see it until you hover over that space. How can I get my custom icon to appear as blue like the other social icons on the sticky header?

    #706239

    Hi,

    Please use the code as following

    .header-scrolled .av-social-link-goodreads a { 
    background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png) !important; 
    } 

    Best regards,
    Yigit

    #706400

    I’m sorry, but it’s not working. The custom icon I have for the regular header is still showing when you scroll and the sticky header becomes active. :(

    #706714

    Hi,

    I added following code to style.css file of your child theme in Appearance > Editor. Please review your website now :)

    Best regards,
    Yigit

    #706905

    Thank you – that’s working! :)

    #707095

    Hi,

    You are welcome! Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Custom Social Icon with Sticky Header’ is closed to new replies.