• Resolved sunk8

    (@sunk8)


    Hi,

    Firstly I’d like to thank and congratulate you on creating this awesome theme. Just need a little help. I’m trying to create a simple landing page.

    I know it’s easy to choose a static page and display it in the theme. However, I would like to add multiple pages, some with the sidebar and some without.

    I’ve tried the following code but it breaks the theme.

    <?php
    $id=8;
    $post = get_post($id);
    $title = apply_filters('the_title', $post->post_title);
    echo $title;
    $content = apply_filters('the_content', $post->post_content);
    echo $content;
    ?>
    <?php

    Kindly advice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Tim Nicholson

    (@timnicholson)

    Hi, sunk8. Thanks for the kind words. I’m afraid I’m not understanding all what you are trying to do. It sounds like you are just trying to set up various pages within your site and some should have a sidebar and some shouldn’t. That’s fine, the theme handles that already. For pages where you don’t want a sidebar, just choose the page template “Page – No Sidebar”. You don’t need any code at all to do that.

    Thread Starter sunk8

    (@sunk8)

    Hi Tim.

    I’m trying to create something similar to your demo as shown here: https://xtremelysocial.com/wordpress/spot/.

    It will be a landing page with external links but no navigation within the wordpress site.

    In Settings >> Reading, I have set an existing page as the home page. I have other pages that I want to incorporate within home page.

    The code that I had written in my previous comment helps me display all content from the page with id 8 within another page. But I am not able to get it to display perfectly, it gets broken.

    Do tell me how to create a landing page like your spot theme demo. I’m using this theme because of the side menu that can be hidden. Thanks.

    Theme Author Tim Nicholson

    (@timnicholson)

    Hi, sunk8. You can actually import the sample Spot theme landing page. Its in a folder called /samples under the Spot theme itself. Basically the idea is that you use standard Bootstrap markup coupled with some theme-specific color palettes and such to do it. That is, you build all the content on the single page instead of including pieces of content from multiple pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple pages just above the pagebottom’ is closed to new replies.