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 1 year, 5 months ago.

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

    lisle55
    Participant
    Post count: 3

    Greetings,

    On this page: http://jaco-condos.com/property-info/21714.html#availability

    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.

    <?php
    /**
    * 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’ );

    genesis();

    #38528

    braddalton
    Participant
    Post count: 9909

    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.