Setting custom links for the featured pages in Customizr

There are cases when you need to set a custom links for the featured pages displayed on front page.

By default, Customizr links to the page you have choosen in the dropdown list (see the featured pages documentation)  . You can easily change this with the following snippet.

1) Grab the page’s id for which you need to set this custom link (how to get a page’s id in WordPress?)

2) Assign a custom link by page id in the $custom_link  array below (I have set examples but you’ll need to change the id and custom link values)

 

 

Where to paste this code? => in your functions.php file. I strongly recommend to create a child theme. Download a start-up child theme here.

Everything you need to know about child theme with Customizr here.

71 thoughts on “Setting custom links for the featured pages in Customizr”

Comments are closed.