• Resolved St_Elmo

    (@st_elmo)


    My congrats to the developers. A great theme and as default, it makes a great landing page. My issue or what I want to achieve is – I have the home page and a pricing table page (2 x page site). Is there any way I can incorporate the pricing page (contents or as post) into the landing / home page? It is a feature I want to display to visitors.
    See my sample site here:- https://tr-services.co.za/

Viewing 6 replies - 1 through 6 (of 6 total)
  • dsntlt

    (@dsntlt)

    Hi,

    What if you used small features for that (you would need to reenter the text)?
    If not, you need to modify the original template and include the page content you need, I can provide the snippet later.

    Let me know what you think?

    Thread Starter St_Elmo

    (@st_elmo)

    Hi dsntlt,
    Thanks for the response; I would prefer to modify a template to call in the “pricing page”. I am not squeamish to try out things – In fact I did look at /MediaPhase/inc/partials….and thought I could add a bit of code into “content-home-about-us” to call in the “pricing page”
    OK, I was going to Google the actual process, am not clued up in PHP, but know a bit of html & css.
    Problem was I couldn’t find where the “pricing page” is located on my site, so resorted asking for help again. I suspect the database but it’s beyond my limited knowledge.

    Thread Starter St_Elmo

    (@st_elmo)

    Hi dsntlt..
    I did a small hack on the middle-ribbon.php script/file.
    What do you think of it?
    I did the ff:

    <?php
    $id=’the actual page id’;
    $p=get_page($id);
    echo apply_filters(‘the_content’,$p->post_content);
    ?>

    I know it’s not the right way…was just experimenting.
    When I get some fund will pay the developer for a proper solution

    dsntlt

    (@dsntlt)

    Hi,

    That’s one way to do it – the ID is hardcoded, but if you’re not going to need other pages to show up in that template instead – leave it there ??

    Other way would be to have a widget that you configure in wp-admin, and then you could change the page you’re embedding anytime you want.

    To sum up – if this is the only place you need it, leave the code you have, it’s fine. If you need more pages embedded (or change the pages you embed frequently), then creating a widget would be the better choice.

    Hope that helps

    Thread Starter St_Elmo

    (@st_elmo)

    Advice taken dsntlt..
    However just for the record, I did try out a few widgets first; custom post, page widget, advance page widget etc….a few outdated.
    I found that while it did display the page, it was kinda “scrounged” up.. needed some formating to properly position it.
    So..yes, I only need it where it currently is…will leave as it is and mark this as closed/solved.
    And thanks for your time and advice..

    Thread Starter St_Elmo

    (@st_elmo)

    Ad per the hack mentioned.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Any way to insert a page or post into landing page’ is closed to new replies.