WordPress.org

Ready to get started?Download WordPress

Forums

This is really I think a "newbie" question (23 posts)

  1. vkaryl
    Member
    Posted 9 years ago #

    but I've looked and don't find the answer. If one creates pages, and one has installed various themes and is using Ryan's theme switcher, do the pages one creates take the "look" of the current theme, or do they exemplify some "vanilla" look the way the admin pages do?

  2. Yes, they'll take on the look of the currently selected theme.

  3. AlanSmithee
    Member
    Posted 9 years ago #

    They will take on the look of the new theme which may be some "vanilla" look depending on the complexity of the new theme. Also, any editing of the files in your old theme will not show up, obviously, in your new theme until you edit those files also.

  4. That's a very good point, AlanSmithee. The sidebar is (IMO) a necessary pain the rear. I like to manually add things to it quite often, but if I used a theme switcher, I'd also have to manually add to every sidebar in every theme in order to keep them all current.

  5. vkaryl
    Member
    Posted 9 years ago #

    Why, thank you kind sirs! That's good, I'm glad to know that, because I haven't any pages as yet so I should be able to get it right the first time. Maybe.

  6. Root
    Member
    Posted 9 years ago #

    Plus: A page can be either associated with a template you create for that purpose. If not it will follow the template hierarchy.

  7. Root
    Member
    Posted 9 years ago #

    @ macmanc - I have been wondering if when the header loads it should not automagically update all our themes from one common file. Just saying. :)

  8. AlanSmithee
    Member
    Posted 9 years ago #

    Root - that is what styles and the style switcher are for. On my site I use both. If one wants the same theme but a different style then they shouldn't mess with adding themes. (oops, I am logged in under my alias for another site)

    -Beel

  9. Root
    Member
    Posted 9 years ago #

    Not really. The point is about adding functionality to the sidebar or any other common part.. If every theme has its own and we want to add a tag we need to edit all over. Just about the only bit that always loads is the header.

  10. That's a great idea, Root, but I think it would be hard to implement due to the wide variations in theme coding. For example, there appears to be many different uses for h1, h2, and h3. Some list the sidebar sections has h2s, some are just strong text, etc. There are, of course, many more variations than that. And, though WordPress is standards-based, I don't think the theme development community would react well to theme standards.

  11. Root
    Member
    Posted 9 years ago #

    Well my new header thingy would certainly bork on my own theme hackage anyway :)

  12. Joni
    Member
    Posted 9 years ago #

    Couldn't you edit all your theme's sidebar.php files (if any) to call another .php file that has the sidebar coding the way you want it? If you put that php include in each of your theme's sidebar templates, hopefully, that will allow you to make all your changes/additions to ONE file and one file only? (I'm the world's laziest here and it would seem that would simplify things.)

  13. vkaryl
    Member
    Posted 9 years ago #

    Hah! Joni, two minds with but a single thought! I was just now looking at this very thing. Truly, there's no reason you couldn't do that. Php is php, includes is includes, it works the way it works no matter who produces the files.

    Bingo.... maybe. (Y'all may note that's pretty much my favorite word when it comes to this sort of stuff....)

  14. moshu
    Member
    Posted 9 years ago #

    Yeah, that might solve the sidebar issue. However there is another potential problem - and the users hardly realize it -, namely if you have a customized Page template in your favourite theme, and later you switch to another one (or add the theme switcher) the Pages created with that sepcial template might look not-so-good in the new setting.

  15. vkaryl
    Member
    Posted 9 years ago #

    moshu, that was I think really what I was trying to ask originally.... since I have no pages now, it's not a problem, but should I decide to make pages in future, and keep the theme switcher (***see below), then I may have problems with pages unless I want to do intensive tweaking.

    Now, I'm not averse to tweaking - in fact, I find it a great deal of fun, and only my husband gets in on the not-repeatable-in-polite-company cursing which happens when things don't go the way I thought they should (and since we've been married thirty years, he just rolls his eyes and goes outside to mess with the horses....)

    But then again, I don't want to set myself up for a full-time job as above either....

    *** theme switcher: I'm like a chinook wind blowing from here today and there tomorrow: no one theme will ever be "right" day in day out. So whatever I do will pretty much require figuring in something in the nature of the theme switcher.... [I still need the random theme changer, but got so sidetracked with the problem a couple of weeks back I never got any farther on with it. Aaron Brazell thought he might come up with something....]

  16. Thinking about how advanced this topic getting, I really have to laugh at its title, "This is really I think a "newbie" question."

  17. vkaryl
    Member
    Posted 9 years ago #

    Well, sheesh, macmanx - it sounded simple at the time? But actually the php includes thing is something I've been doing forever with plain 'ol website pages - just one step further....

    I'm no programmer. Far from it. But once I start gnawing away at something, I generally find someone who can either do what I need done, or show ME how to do it (preferred mode....)

  18. Sorry, I didn't mean it to sound insulting if it did (text is a horrible medium). It just struck me as funny.

  19. vkaryl
    Member
    Posted 9 years ago #

    Oh no - I wasn't insulted! Yes, text is icky for parsing intention, and I never got into the "smilie" thing (all that does is let one pretend to a meaning which was not the intention all along....)

    I was mostly just reiterating that I expect someone will figure this out eventually - not I, not being a programmer, but some really bright person....

    [Heh. Believe me when I tell you that if I feel insulted, you will KNOW it practically immediately. I am not known for "moderation" when I'm pissed.]

  20. moshu
    Member
    Posted 9 years ago #

    Not a coder here either... the other day when I was checking out a new theme that didn't have page.php template, I just created quickly a kinda generic Page template for it - which was OK, because my pages (on my blogtest) don't have any spectacular stuff :)

  21. vkaryl
    Member
    Posted 9 years ago #

    Hmmm. Okay, moshu, would you say then that if I want to have a dozen themes on my site with the theme switcher installed that I will have to promulgate a page.php for each theme in order to have the theme switching system NOT bork pages if I choose to use them?

  22. moshu
    Member
    Posted 9 years ago #

    Yes, I guess that's what I am saying... more or less.
    Look at my testbed where I have a few pages and check them out in different themes. You will notice that 2 of them (arhives and search) will show up in the list in all of the themes - except Dark Maple, because that one has a customized page_list tag in the sidebar (excluding search and archives, since they have their own link from the horizontal navbar).
    These 2 pages which have tehir own template in DM, wont show anything in other themes.
    On the other hand the rest of the pages only look different in Default and DM because these two have page.php. The rest of the themes uses the index.php to display the pages.

  23. vkaryl
    Member
    Posted 9 years ago #

    I see what you mean. That gives me some food for thought, and thanks for taking the time to help me out here.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.