WordPress.org

Ready to get started?Download WordPress

Forums

Need to use external layout (3 posts)

  1. visinoni
    Member
    Posted 5 years ago #

    I am curious how you guys go about integrating your blogs with the rest of your site. Let's say your site is using an ecommerce application and cannot be integrated into wordpress by just using wordpress as a CMS. How would you go about keeping their layout the same?

    I was thinking of writing a plugin that grabs a layout page from the main site and doing some simple text replacement to inject the content... then outputting. I tried doing this with output buffering, but I dont know what actions to hook into to execute ob_start() before anything is output and ob_get_clean() afterwards. Is this the wrong approach?

  2. Evita
    Member
    Posted 5 years ago #

    How would you go about keeping their layout the same?

    I would create a layout for WordPress that looks like my other site - the simplest way.
    You can also read in the codex for integrating WordPress with your site.

  3. visinoni
    Member
    Posted 5 years ago #

    So what happens when my site's navigation changes? I have to change it inside wordpress too? I don't like that. I don't want the user to know that when they go to /news/ that they are going to a "blog" I just want them to see news posts on the "news page".

Topic Closed

This topic has been closed to new replies.

About this Topic