Sidebar not working in testimonials template?

Support Forums for LiveMesh Themes & Plugins Forums Invent Theme Support Sidebar not working in testimonials template?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16011
    mouretDK
    Member

    I am able to select sidebare, but can’t get it working.
    I have tried copying the relevant parts from other page templates that has working sidebar, but to no avail.

    Also there isn’t testimonilas layout settings in “theme options” (maybe the problme is realted to that?)

    testimonial:
    http://www.herning-gym.dk/velkommen-til-nye-elever/

    I have a development site if you want to have access to the backend.

    #16117
    Raghavendra
    Moderator

    Instead of adding a sidebar, why not add the relevant HTML to the template itself? You can add the desired HTML to the template-testimonials.php file. Setting up sidebar on this page can really spoil the design since you have so much text in each of these testimonials, at least that is my opinion. Pls let me know if you see an issue with putting the HTML in the testimonials – possibly at the bottom of this page.

    #16230
    mouretDK
    Member

    No that’s not going to work for this setup.

    The page is part of several pages where there is a sidebar (menu).

    so if possible I would like to know how to modify the template to accept a sidebar.

    #16242
    Raghavendra
    Moderator

    Ok I understand it better now. You will need to make two small code changes –

    1) In template-testimonials.php file, add

    get_sidebar();
    

    at line number 142 – just before the last line.

    2) In framework/presentation/layout-manager.php file, you should be able to locate template-testimonials.php file reference at line number 288. Remove the same so that the page becomes two column.

    If you do not want to make these code changes in the parent theme and afraid of changes being lost, you can create a new template with a different php file name in the child theme and copy over all of the code from template-testimonials.php file and then add get_sidebar() to it. Should work well.

    #16274
    mouretDK
    Member

    Great – thanks! It’s now working as I wanted 🙂

    just had to change the class “twelvecol” to “ninecol last” in the template-testimonials.php

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Sidebar not working in testimonials template?’ is closed to new replies.