Welcome! To use this support forum, please Login or Join Today!

   

Using Synapse for landing pages

{name}
RankRank

Total Posts: 45

Joined 2011-09-28

PM

 

Hi,

I see there is a “Landing page - freeform content” template for Synapse. But is there a way to only hide the nav and/or footer using a custom field like Impacto?  (hidenav = true , hidefooter = true)

I tried it, and it didn’t work. So maybe it’s unique to Impacto?

I find the “Landing Page” template to be too bare bones. In most instances, I want the logo in the header and copyright info in the footer on all landing pages.

Another option is to use the Landing Page template, then create two widgets—one with only the logo, and the other with only the copyright info. Then use the plugin, amr shortcode any widget (https://wordpress.org/plugins/amr-shortcode-any-widget/), to create what is essentially an old-school include file that can be inserted on all of the landing pages via shortcode.

Synapse is the Swiss Army knife of WordPress themes, and its Landing Page template is just another great tool. You really don’t need a 3rd party tool like Unbounce to create nice landing pages.


Thanks in advance for any feedback.

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

Hi, Yes you can customize the landing age template to suit your needs. If you look at the function you’ll see that we’re just removing components of the layout. You can move this function to your child theme to override which components the landing page removes.

function st_landingpage() {
    
if ( is_page_template('landing-page.php') ) {
        
// Hide The logo
        
remove_action('st_header','st_logo'3);
        
// Remove Logo CSS from Head
        
remove_action('wp_head''logostyle');
        
// Hide The Main Menu
        
remove_action'st_navbar''st_main_nav'1);
        
// Hide The Footer
        
remove_action('wp_footer''st_footer',2);
        
// Remove the Header Extras Widget
        
remove_action('st_header','st_header_extras'4);
    
}
}
add_action
('template_redirect''st_landingpage'); 


Just comment out the actions you want to keep. For example, to only hide the nav and footer, change to:

function st_landingpage() {
    
if ( is_page_template('landing-page.php') ) {
        
// Hide The Main Menu
        
remove_action'st_navbar''st_main_nav'1);
        
// Hide The Footer
        
remove_action('wp_footer''st_footer',2);
    
}
}
add_action
('template_redirect''st_landingpage'); 

 

{name}
RankRank

Total Posts: 45

Joined 2011-09-28

PM

 

Thank you for your prompt reply. I appreciate your help.