Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #595816

    I am looking to replace the logo on a few pages on my site. I know how to do this based on the link below to the normal header, but when I use the Transparent Header option within the page it defaults back to the logo I have specified in my Enfold settings for Transparent header.

    How do you get this to work for both types of headers?

    • This topic was modified 8 years, 9 months ago by sublime5o.
    #596955

    I hate to do this but it is already more than 15 pages deep without any acknowledgment. BUMP.

    #598692

    Hi!

    Sorry for the late reply. That is going to be a little bit more complicated than changing normal logo. Can you please point out your page where you would like to apply this change? Changing logo with combination of sublogo could work – http://kriesi.at/documentation/enfold/add-subtext-to-logo-replace-logo-with-site-title/

    Cheers!
    Yigit

    #598709

    Sure. It is actually going to be around 3-5 pages. But here is the main page in the private content below.

    #598710

    Hi!

    If you do not mind, can you please create a temporary admin login and post it here with secondary logo and secondary transparent logo you would like to use?

    Regards,
    Yigit

    #598713

    Here ya go.

    • This reply was modified 8 years, 9 months ago by sublime5o.
    #600651

    Hi!

    It’s not working because the url is still set to localhost. Please check the code.

    http://localhost/bowl/wp-content/themes/tonawanda-child/images/backalleybbq-logo.png

    Best regards,
    Ismael

    #600701

    Sorry about that. I have updated the image URL. Now it shows up but only have you scroll down the page. It should be in place the entire time.

    #603568

    Hey!

    I’m sorry but I can’t reproduce the issue. Did you set the logo as the “transparency Logo”? Note that it will only display if you set the page to have a transparent header.

    Regards,
    Ismael

    #603925

    Yes. I did give you guys wp-admin access, if you can check and see what you think.

    #604235

    Hey!

    Alright. We added this code in the functions.php file:

    // different logo
    add_action( 'wp_footer', 'ava_custom_script_logo' );
    function ava_custom_script_logo() {
    	if(is_page( array( 'back-alley-bbq', 'menu' ) )  ) {
    	?>
    		<script type="text/javascript">
    		(function($){
    			var a = function() {
    				$('.logo .subtext img').attr('src', 'http://dev.hostsites.me/bowl/wp-content/themes/tonawanda-child/images/backalleybbq-logo.png');
    			}
    
    			a();
    		})(jQuery);
    		</script>
    	<?php
    	}
    }

    Remove browser cache before checking the page: http://dev.hostsites.me/bowl/back-alley-bbq/

    Best regards,
    Ismael

    #605213

    Perfect. All set. This can be closed.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Replace Logo on several pages (Transparent Header and normal header)’ is closed to new replies.