WordPress.org

Ready to get started?Download WordPress

Forums

Proper use of multisite versus child theme (9 posts)

  1. WPmaverickzee
    Member
    Posted 2 years ago #

    I would like someone to point me in the right direction. I want to have a sub-folder in the website that shows the same posts and same content as the regular blog (using the same database), but with a different simplified theme.

    For example, it would be http://www.example.com and http://www.example.com/mobile/. The mobile users would see a simplified version of the site in the mobile folder. When they click on the links, they stay in the mobile folder. I am going to disallow robots from the mobile folder to avoid any duplicate content penalties in Google.

    After reading a lot of information about multisite, I think it might not be the best approach. If I understand it correctly, the multisite is used for different blogs with different databases. Should I use a child theme on the sub-folder instead of setting up a multisite? What is the best way to do this? I can edit PHP code if I need to. Thanks.

  2. Samuel B
    moderator
    Posted 2 years ago #

    it would be tough to share the database with a different theme
    I think you might be better served doing 2 separate installs
    http://codex.wordpress.org/Installing_Multiple_Blogs
    then on the mobile site, just pull the rss feed(s) from the original site to the simplified site
    http://wordpress.org/extend/plugins/feedwordpress/

  3. brasofilo
    Member
    Posted 2 years ago #

    well, ain't that what mobile plugins are for?
    to display a different theme if(mobile=="your,mobile,list") ?

    or maybe simply adding a mobile stylesheet?
    <link rel="stylesheet" href="css/handheld.css" type="text/css" media="handheld" />

  4. WPmaverickzee
    Member
    Posted 2 years ago #

    Well it's not actually for mobile users. I used /mobile/ as an example because it would be easy to explain. If it was for mobile users, yes using a mobile plugin or mobile stylesheet would be easier than trying to install another WordPress in a sub-folder.

    What I'm trying to do is to add our existing blog to an existing corporate website (at a different URL) without the user getting out of the corporate website. I want to use an iframe in the corporate site to show the blog. This is why I need to create a separate sub-folder to show the same content in a different style. When someone clicks the blog links in the iframe, they need to stay in the sub-folder to keep the same style. Someone visiting the real blog would never see the sub-folder links. This is what management wants.

    It looks like I need to do two installs and import the data into the second install.

    Thanks.

  5. brasofilo
    Member
    Posted 2 years ago #

    well, it just added a degree of confusion...

    if the corporate website is using WordPress, i don't understand the need of a separate install for "blog"

    anyway, sorry but i'm really not understanding your proposition...
    - a simplified theme to display inside an iframe?
    - import the data in a second install and then maintaining two sets of duplicate content?

  6. WPmaverickzee
    Member
    Posted 2 years ago #

    Sorry, I'm trying to keep it simple but it's not working.

    We have an old corporate website that has nothing to do with WordPress. It doesn't even use PHP. It's mainly used for some customer service support. The marketing department set up their own WordPress blog at a different URL. I have access to their blog files, and I also have access to the corporate website files (on a different server).

    Now management wants to show the blog in an iframe on the corporate site, in a different style, without changing anything on the marketing blog.

    Why not just include a link to the blog? Because management doesn't want to lose the customer to the blog site URL. When someone clicks on post links in the iframed-blog, they would continue to see the blog in the different theme. The marketing guys would continue to get traffic to their WordPress blog and make new posts and approve comments. They would continue to use their existing blog URL.

    I think if I set up a sub-folder on the blog, I could point to the sub-folder in the iframe on the corporate site, and voila, I have a blog in an iframe on the corporate site in the simplified style that they want. In theory it should work. Thanks.

  7. brasofilo
    Member
    Posted 2 years ago #

    random idea:
    in blog's header, detect if it is being displayed inside an iframe and serve a different stylesheet?

  8. WPmaverickzee
    Member
    Posted 2 years ago #

    Great idea. If that works it would make it so much easier to do. I didn't think it was possible for the blog header to know if it's inside an iframe. You're right, all I need to do is serve up a different stylesheet if the blog is inside the iframe. I'll do some searches and see what I come up with. Thanks.

  9. Samuel B
    moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.