WordPress.org

Ready to get started?Download WordPress

Forums

Need a Guru's advice on how to do this page template (3 posts)

  1. houmie
    Member
    Posted 2 years ago #

    Hi,

    I like to create a page template that divides the content into three columns like this:

    <div>Left Column</div>
    <div>Main Column</div>
    <div>Right Column</div>

    The Main column should display the usual page content as by default.

    The Left Column should show the content of a specific subpage with the pageId = 10.

    The Right Column should show the content of a specific subpage with the pageId = 20.

    Is this possible?

    I would really appreciate if someone could point me to the right direction,

    Many Thanks,
    Houman

  2. Abinav Thakuri
    Member
    Posted 2 years ago #

    Hi Houman,
    Yes this is very possible :)

    Ofcourse the main column gets the usual content, so you don't have to change anything.

    Your code for the left and right column would look something like this:

    [code moderated - please use the pastebin for any code longer than 10 lines]

    Do note that 10 and 20 are the ids of the page you want to include. You can always change them to appropriate ones.

    This should work for you :)

  3. houmie
    Member
    Posted 2 years ago #

    Dear Abinav,

    Thank you so much for your kind help. I was investigating this issue for four days without any solution.

    Thanks god, I saw your code before the moderator kindly deleted it.

    I have it now almost working

    http://venuscloud.com/crm-software/

    However for some reason the right column goes to the bottom instead.
    I don't understand why. May you be able to have a look at the source code and enlighten me please?

    Many Thanks for your kind help,
    Regards,
    Houman

Topic Closed

This topic has been closed to new replies.

About this Topic