• Resolved 4star

    (@4star)


    I have a theme with a different layout for pages and archives. I want to change my non wordpress pages into the same layout as my pages and archives page and I was wondering how I would do that.

    I already know how to intergrade the non wordpress page to have the same layout. The only problem is i don’t know how to call that particular layout with the non wordpress pages code.

    The code to call other pages and archives is this
    <?php if (is_page() && !is_page("archives")) echo " class=\"singlecol\""; ?>

    How do i switch up
    < ?php require_once("/home/......./wp-blog-header.php");? >
    to call singlcol rather then the default layout style?

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • How do i switch up
    < ?php require_once("/home/......./wp-blog-header.php");? >
    to call singlcol rather then the default layout style?

    You dont do it that way.

    This:

    <?php require_once("/home/......./wp-blog-header.php"); ?>

    is necessary regardless of what you do for display.

    what you need to be looking at is the stuff you pasted above that:

    <?php if (is_page() && !is_page("archives")) echo " class=\"singlecol\""; ?>

    forget about the ‘if’ stuff and just do the stuff beyond it ..

    Really though, the simplest thing to do is to take a page that looks like you want your other page to look. View the source of that page in your browser, and copy that into a blank text file — edit as you like and upload.

    Really though, the simplest thing to do is to take a page that looks like you want your other page to look. View the source of that page in your browser, and copy that into a blank text file — edit as you like and upload.

    Shockingly simple… I am a little embarrassed I never thought of that before…

    This wasn’t even my thread but I thank you for the tip.

    Thread Starter 4star

    (@4star)

    Thanks alot. you are right about the simple part. I don’t understand the code part anyways i took out the if and it don’t work.

    sometimes if you rename the file it works

    Well, I already had that code, and I used it in one of my pages, and it didn’t work… Everytime I’d go to the non-wordpress page, it would show a different theme, not the new theme i’d just created. So I deleted all themes apart from my own, and now it’s wont show any theme and is just coming up with an error saying they can’t find the default theme.
    It’s annoying me :\ please help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Making non wordpress pages simailar to Pages and Archives layout pages’ is closed to new replies.