Home Page Verification Only
-
Hello,
I copied and pasted this code per your instructions for the HOME page verification only. I put it into the function.php of the theme but it still pops up on all pages. Im green on this aspect. Maybe I need to clear the catch?
Here is the code. I just added my website. Did I fill it in correct and where in the function page do I paste this code?
Also, which function page? In the function.php of the actual theme? There are a few. Thanks for your help.
function home_page_disable_verifier($checks){
//Check if the current page is the home page
if(is_home()){
//If it is, add the check ID key, and set it to true.
$checks[“www.bammcollective.com”] = true; // is_home_page can be whatever you want it to be. Make sure it’s unique!
}
else{
//If not, add the check ID key, and set it to false.
$checks[“www.bammcollective.com”] = false;
}
//Returns the array with the newly added boolean
return $checks;
}
add_filter(‘eav_custom_modal_logic’,’home_page_disable_verifier’);
- The topic ‘Home Page Verification Only’ is closed to new replies.