-
AuthorPosts
-
April 19, 2018 at 11:57 pm #944360
Hello, I am trying to create a network of websites under one wordpress installation using the enfold theme. Essentially, I’ve created multiple pages under a parent for each website. What I would like to do is be able to change the theme color and logo for each website. I’ve already created a custom template for each website, how do I go about changing the logo for each page that uses certain template as well as changing the global theme colors?
Thanks a lot!
April 23, 2018 at 7:11 am #945255Hey jonerickson1011,
Thank you for using Enfold.
You can only define one global theme option for each website. You can’t change it per page, unfortunately. If you want to define a different logo for each page, use this filter.
add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(is_page(9)) { $logo = "http://yoursite.com/logourl.png"; } return $logo; }Set the value of the is_page function to the id of the page. And adjust the image url.
Best regards,
IsmaelApril 24, 2018 at 7:37 pm #946097Ismael, I took this same edit but added the is_page_template() function instead so that it would change based on the template being applied to the page, rather than a specific page id that could change and requires more work to maintain when making large edits to a website. However, is there a function to change the global theme color as well? Thanks for the help.
April 26, 2018 at 5:13 am #947071Hi,
Thank you for update. The global theme color or option is defined as a single file so you can’t adjust it for each page. Please use the elements’ color options to create unique color theme for each page. You could hire a freelance developer or contact our partner, Codeable.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.
