• Resolved paddyinthesun

    (@easylifespain)


    Hi guys, i am having difficulties trying to display a sidebar on my pages, the sidebar (which is populated with WPML Multilingual CMS wideget) only shows up on posts and not pages.
    I only have 2 pages on my site, “Home” (static) and “About”. I am using the wpfolio theme.
    Let me know if you need any more info. All feedback appreciated, thanks.
    https://www.elscleaning.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter paddyinthesun

    (@easylifespain)

    Ok, i think the reason the sidebar is not showing is because the following code might be needed in page.php:
    <div id=”sidebar”>
    <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘sidebar’) ) ; ?>

    I’ve added this code to page.php file but the sidebar is showing near the footer of the page. How can i ensure the sidebar is displayed on the right side of the page, like the sidebar in the posts.

    Thread Starter paddyinthesun

    (@easylifespain)

    Almost there, i have added the sidebar to the correct position, however, if i have only one widget in the sidebar, the text wraps around it.

    How can i ensure the text does not wrap around the sidebar?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sidebar not appearing in pages’ is closed to new replies.