Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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!

    #945255

    Hey 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,
    Ismael

    #946097

    Ismael, 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.

    #947071

    Hi,

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.