How to remove sidebar Agentpress

Community Forums Forums General Discussion How to remove sidebar Agentpress

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 2 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #38462



    On this page:

    I need to have the sidebar removed from the page. I have checked the page layout option to full width but it still puts the sidebar in the page.

    I have tried to create a new template but I am totally confused since templates only have one item something like genesis() and that is it.

    Thanks for the help

    My attempt is using this code which is the landing template since we are not using that one.

    * This file adds the Landing template to the AgentPress Child Theme.
    * @author StudioPress
    * @package Agentpress
    * @subpackage Customizations

    Template Name: Landing

    // Add custom body class to the head
    add_filter( ‘body_class’, ‘add_body_class’ );
    function add_body_class( $classes ) {
    $classes[] = ‘agentpress-landing';
    return $classes;

    // Remove header, navigation, top search, breadcrumbs, footer widgets, footer and disclaimer
    add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_full_width_content’ );
    remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ );




    Here’s some code i tested that works but you should be able to simply change the layout option to full width.

    Code not displaying? Grab it on Github.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.