Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #834390

    Hi there, I tried to add code to my website to change the logo per page. But it doesn’t work…anyone tips? Best regards Sylvia

    add_filter(‘avf_logo’,’av_change_logo’);
    function av_change_logo($logo)
    {
    if( is_page(3364) ) {
    $logo = “http://splinter.care/wp-content/uploads/2017/08/Telefoonnummer-magenta.png”;
    }
    return $logo;
    }

    #834688

    Hey sniper-x,

    Quotation marks in code should be directionless. Please make sure that you’re not useing left and right quotes ‘’ and “”.

    Please try this instead:

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if( is_page(3364) ) {
    		$logo = "http://splinter.care/wp-content/uploads/2017/08/Telefoonnummer-magenta.png";  
    	} 
    
        return $logo;
    }

    Let us know if that works for you.

    Best regards,
    Sarah

    #834699

    Hi Sarah,
    Thanks for your reply, this doesn’t work either. To be sure I copy / past this website styling / quick CSS part of the enfold theme?!
    Best regards
    Sylvia

    #834741

    Hi,

    Oh! No, you don’t put this in General Styling. You need to add it into the Functions.php file in Appearance > Editor.

    Let us know if you need further help.
    Best regards,
    Sarah

    #834761

    Yes, it works….any tips to adjust the color beneath the menu per page? Now it is green and I want to change this also per page.

    #834817

    Hi,
    We can offer some custom CSS if you include the url to the page in question so we can take a closer look.

    Best regards,
    Mike

    #835800

    Hi Mike,
    Did you see my private reply?
    Best regards
    Sylvia

    #835975

    Hy Slyvia,

    Sorry, no private reply came in. Can you try again? Please try putting something like “Here’s the login” in the body of your reply, then put the url in the Private Section.

    Thank you!

    Best regards,
    Sarah

    #836037

    Hi Sarah, your tip about the logo change worked. Any suggestions to adjust the color beneath the menu per page? Now it is green and I want to change this also per page. F.e. check the menu click on ‘voor wie’, here you see that the logo changed to magenta. And I would like to change the menu hover bar to become magenta as wel.  Thanks Sylvia

    • This reply was modified 7 years, 4 months ago by Sarah. Reason: Moved password to Private content
    #836170

    Hi,

    I have tried to access your site and the password is wrong.

    Best regards,
    John Torvik

    #836229

    Hi there the password works ok on my site

    • This reply was modified 7 years, 4 months ago by Sarah. Reason: moved password to Private section
    #836530

    Hi there!

    Yes, the password works. Thank you!

    Please try these in Quick CSS:

    .header_color .avia-menu-fx  { background-color: magenta !important; } /* border under active and hovered main menu items */
    
    .html_header_top .header_color .main_menu ul:first-child >li > ul  {border-top-color: magenta !important;} /* border above submenus */
    
    .header_color .main_menu ul:first-child > li > ul > li a:hover { background-color: magenta; } /* hover state of sub menu items */

    Please change the color to fit your preference.

    I hope that helps!

    Best regards,
    Sarah

    #836894

    Hi Sarah, thanks…but what I meant is that I want on the homepage the hover color to be green and on the ‘voor wie’ page the hover color should be magenta. Any tips for that? Best regards

    #837431

    Hi,

    I see. Sorry about that! Please use this code instead:

    .page-id-3364 .header_color .avia-menu-fx  { background-color: magenta !important; } /* border under active and hovered main menu items */
    
    .html_header_top .page-id-3364 .header_color .main_menu ul:first-child >li > ul  { border-top-color: magenta !important; } /* border above submenus */
    
    .page-id-3364 .header_color .main_menu ul:first-child > li > ul > li a:hover { background-color: magenta !important; } /* hover state of sub menu items */
    

    Let us know if that works!

    Best regards,
    Sarah

    #838610

    Yes this works!!! Thank you so much!

    #838707

    Great!

    We’re happy to help. We’ll close this topic now. For any other questions or issues, feel free to post them here on the forum and we will do our best to assist you.

    For your information, you can also take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/

    We’d also appreciate it if you can take a moment to review our theme if you haven’t already. https://themeforest.net/downloads

    Thank you for using Enfold.
    Cheers!
    Sarah

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Different logo on specific page’ is closed to new replies.