$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Change logo on specific page id using css|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Change logo on specific page id using css

matteradmin8PV0评论

I am trying to change the logo one specific page of this wordpress site. /

Currently I know I am targeting the right page and element as I can hide the logo using:

.page-id-6935 .w-logo-img > img {
     display:none;
}

But how do I now show the logo located at .png

Thanks in advance

I am trying to change the logo one specific page of this wordpress site. http://staging-domesticbliss.transitiongraphics.co.uk/db-home-help/

Currently I know I am targeting the right page and element as I can hide the logo using:

.page-id-6935 .w-logo-img > img {
     display:none;
}

But how do I now show the logo located at http://staging-domesticbliss.transitiongraphics.co.uk/wp-content/uploads/2017/03/db-homehelp-black-xl.png

Thanks in advance

Share Improve this question asked Mar 23, 2017 at 15:35 Grant SmithGrant Smith 311 gold badge1 silver badge3 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 2

Rather than using the tag in html, set the logo using the CSS background property. Use background-image:url(http://staging-domesticbliss.transitiongraphics.co.uk/wp-content/uploads/2017/03/db-homehelp-black-xl.png); instead.

.page-id-6935 img.for_default {
   content: url(/wp-content/uploads/2017/03/db-homehelp-black-xl.png);
}

Using content replaces the logo, whereas background image puts the new logo behind the original.

Logo settings are controlled through the WordPress customizer and administrator interface for most themes today. This site is using the Impreza theme; see the documentation for its logo settings.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far