Hi,
I followed the following thread -https://kriesi.at/support/topic/new-footer-widget-full-length-on-the-bottom-of-every-page/ – and added a new footer widget (which has a contact form) at the bottom of every page and it works great
However, I would like to hide/exclude it on my contact page, because I want a different contact form there, is that possible?
My site – https://velocitydpi.com/
My site contact page – https://velocitydpi.com/contact-velocity-graphic-las-vegas-nv/
well you can do it this way in quick css:
.page-id-25 #footer {display: none}
but it is better if you avoid generation on your page with id 25:
add_action('ava_before_footer','avia_footer_top_column');
function avia_footer_top_column(){
if(!is_page(25)){
ob_start();
dynamic_sidebar( 'footertop' );
$footertop = ob_get_clean();
$output = "<div class='container_wrap footer_color' id='footertop'>";
$output .= "<div class='container'>";
$output .= $footertop;
$output .= "</div>";
$output .= "</div>";
echo $output;
}
}
if you got more than one exclude an array:
if(!is_page(array( 25, 29, 102))){
the exclamation mark is a logical “not” – if it is not page with id=25 do …
Perfect
thank you!
Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan Shannon