WP conditional site logo and header block

i have a customer who had 3 different sites and they wanted to bring all 3 sites under one umbrella site. however, each

i have a customer who had 3 different sites and they wanted to bring all 3 sites under one umbrella site. however, each of the companies have different logos. when i define a logo for the site, it shows all-tru the site.

what i need is a particular logo for each of the sites;

main (landing) site -> logo-main.png art site -> logo-art.png print site -> logo-print.png

i am not a coder, just a designer so if i am to do some php editing, please be as specific as possbile.

thank you.

i have a customer who had 3 different sites and they wanted to bring all 3 sites under one umbrella site. however, each of the companies have different logos. when i define a logo for the site, it shows all-tru the site.

what i need is a particular logo for each of the sites;

main (landing) site -> logo-main.png art site -> logo-art.png print site -> logo-print.png

i am not a coder, just a designer so if i am to do some php editing, please be as specific as possbile.

thank you.

Share Improve this question asked Sep 19, 2019 at 16:58 aliselvialiselvi 1
Add a comment  | 

1 Answer 1

Reset to default 0

Considering you'll use multisite and for adding logo you just need to go to individual site and enable option to add logo(will be available in the theme you are using).

Next step is to alter header.php from your theme and add following lines of code where you have the_custom_logo(); TO:

switch_to_blog( $blog_id );   //where `$blog_id` is current site id
the_custom_logo();
restore_current_blog();

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745119710a4612338.html

相关推荐

  • WP conditional site logo and header block

    i have a customer who had 3 different sites and they wanted to bring all 3 sites under one umbrella site. however, each

    9小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信