Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #601537

    HI-
    My coder has been working on a template to set up a sidebar template in Enfold and said he is having trouble getting it to “register”… I have a sidebar called “IDX” and still it doesn’t display on pages like this one:
    http://www.thomashenthorne.com/homes-for-sale-sold-details/85-OAKMONT-AVENUE-SAN-RAFAEL-CA-94901/21511961/3/

    Do you have any suggestions of what we need to do to get this sidebar working? I have pasted the new template code below…thanks!

    `<?php /* Template Name: IDX w/Sidebar */
    global $avia_config, $more;

    /*
    * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
    */
    get_header();
    ?>

    <div class=’container_wrap container_wrap_first main_color <?php avia_layout_class( ‘main’ ); ?>’>

    <div class=’container test’>

    <main class=’template-page content <?php avia_layout_class( ‘content’ ); ?> units’ <?php avia_markup_helper(array(‘context’ => ‘content’,’post_type’=>’page’));?>>

    <?php
    if(!empty($avia_config[‘conditionals’][‘is_builder’]))
    {
    $avia_config[‘conditionals’][‘is_builder_template’] = true;
    get_template_part(‘template-builder’);
    exit();
    }
    else
    {
    get_template_part(‘page’);
    exit();
    }
    ?>

    <!–end content–>
    </main>

    <?php

    //get the sidebar
    //$avia_config[‘currently_viewing’] = ‘page’;
    get_sidebar(‘IDX’);

    ?>

    </div><!–end container–>

    </div><!– close default .container_wrap element –>

    <?php get_footer(); ?>

    #601960

    I should add that these pages are not hosted on my wordpress site, but instead indexed to it with my domain url. This is all done through a plugin called Optima Express. Thanks

    #602338

    Hi,

    Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Regards,
    Rikard

    #602623

    Thank you for your response! I think I might have solved my issue… the sidebar in the theme settings was turned off for pages… so even though the new template called a sidebar, the global theme settings overrode it. I think I can make this work for my site by just turning off the sidebar on pages where I don’t want one. The answer now seems so obvious…. thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Difficulty getting sidebar template to register’ is closed to new replies.