Example code

Step 1
XTRA

Using WordPress filter to modify any theme options value

In the following example you can see how to change site logo image URL only on home page of your website, Other pages will get logo from theme options.

HOW

How and where should I add this PHP codes?

Best solution is to add custom actions and filters in Child Theme functions.php file. But also you can create your own plugin and use this codes in your plugin.

HOW

How to find any theme options key?

In the below screenshot, you can see how to find site width option key. First open your customizer page then find your option and then open your browser inspect element feature to find the input name or data-depent-id attribute. Exactly like below shot you can find key. For site width key is site_width

2 Comments

    • Hi there,
      For each new domain you need to purchase a regular license as Envato rules. Also for getting faster support, Please submit support ticket.
      Regards

Leave a Reply

Your email address will not be published. Required fields are marked *