New Landing How can we help? Themeforest Theme Support Neighborhood Change Logo based on page

Viewing 4 posts - 1 through 4 (of 4 total)
  • #33317
    pl
    Member
    Post count: 13

    hi,
    i have 2 different logo’s and i would like to change them based on the page name.

    f.ex.

    if ( is_page ( 1 ) ) {
    logo1; }
    else {
    logo2; }

    normaly this part is integrated in the header.php file.
    Where can i find the logo integration part in your neighborhood theme?

    thanks

    #33857
    Melanie – SUPPORT
    Member
    Post count: 11032

    In sf-header.php ๐Ÿ™‚ Cheers!

    #35778
    pl
    Member
    Post count: 13

    Hey thanks, it works ๐Ÿ™‚
    i’ve found the file in “includes\swift-framework\sf-content-display” and changed the following:

    	/* LOGO
    	================================================== */ 
    	function sf_logo($logo_class) {
    		
    ...
    		if (isset($options['logo_upload'])) {
    		//$logo = $options['logo_upload'];
    
    			// custom logo based on page
    			if ( is_page ("your pagename here") ) {
    				$logo = "extra logo path";
    			} else {
    				$logo = "normal logo path";
    			}
    		}
    ...

    how can i integrate this customization in my neighborhood child theme? copy&paste doesn’t work :-/
    thanks pl

    #37204
    Melanie – SUPPORT
    Member
    Post count: 11032

    You’d need to make sure to include not only the file sf-header.php, but also all the files/the file structure that is pointing to that file.

    I see a reference in functions.php for example. So you need to copy functions.php to your child theme and make sure the call to this file leads to the correct path.

    Cheers!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register