WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 2 differently themed front pages (7 posts)

  1. jlyons0303
    Member
    Posted 1 year ago #

    I would like to create 2 front pages for the same blog.

    Both front pages need show identical blog posts, but have slightly different themes.

    One other difference would be that all of the post's title links from one of the front pages would open in a new browser window.

    Is this possible?

  2. Latka
    Member
    Posted 1 year ago #

    so lets call the different front pages, pageA and pageB. I go to your site, which page loads? why that page rather than the other page?
    I dont quite understand the question maybe, but can you elaborate on the idea behind your thinking please? It's unclear to me how you could achieve this unless there is some kind of rule that says: if condition 1 is true load pageA but if condition 2 is true load pageB

  3. jlyons0303
    Member
    Posted 1 year ago #

    One of the pages will be embedded in an iframe on a another site that has different design constraints.

  4. Latka
    Member
    Posted 1 year ago #

    That may be possible. To be honest I have never thought about that idea before. Good question ! I dont think there is a server side check that will tell you if a page is loaded in an iframe. I think there is only client side checking on that. I think only the browser could check on that not the server
    Is this link any use to you

    http://stackoverflow.com/questions/6662542/check-if-site-is-inside-iframe

  5. Andrew
    Forum Moderator
    Posted 1 year ago #

    Can you not just host the second website differently, then link that in the iFrame's URL? That's how it's done on the WordPress themes directory.
    E.g;
    On this page http://wordpress.org/extend/themes/twentyeleven there's an iframe that links this page in http://wp-themes.com/twentyeleven/

  6. jlyons0303
    Member
    Posted 1 year ago #

    Thanks a lot! This will work.

  7. Latka
    Member
    Posted 1 year ago #

    oh cool

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.