WordPress.org

Ready to get started?Download WordPress

Forums

Ryan's Theme Switcher (34 posts)

  1. vkaryl
    Member
    Posted 9 years ago #

    I'm using it, it's working just fine. Except for a little glitch that I discovered by accident today: doesn't matter what theme you're in, if you click on the "home" link in the header you get a reload of my original "default" theme, Quentin from pikemurdy. I've looked at source on 30 different sites today, and I can't see one damn thing different from source on my page from all those. I see some using a different scripting setup, but that's not germane....

    I absolutely am flummoxed. It was just an accident that I even clicked on the header link....

  2. Root
    Member
    Posted 9 years ago #

    Ive had the same problem. Likewise on a cat change. Bang. Back to my default.

  3. vkaryl
    Member
    Posted 9 years ago #

    Hmmmmmm..... Root, do you think installing Kubrick would "fix" this? If that's it, then Ryan needs to do some tweaking I think....

  4. dawg
    Member
    Posted 9 years ago #

    I notice that with your site, I do not have that problem as I have no Quentin on my server but it also does not happen with Sunset, yeah I know I have no header link :)

  5. vkaryl
    Member
    Posted 9 years ago #

    Okay, wait a sec.... dawg, what do you mean by "no header link"?

  6. dawg
    Member
    Posted 9 years ago #

    If you click on my header there is no link! Unless you have changed it.

  7. vkaryl
    Member
    Posted 9 years ago #

    Ah. On "Sunset" this is true, there is no "header link" - the link to
    P O V is in the horizontal nav.

    And you do not want to know how dumb I really am, I think (or maybe you do....) Anyway, I think it's the dif between putting the addy as "...opinion/" and "...opinion/index.php".

    Which if true (and I'll be in "check mode" tomorrow - too late tonight) will make me feel REALLY stupid, but then again, no knowledge is ever wasted.

  8. dawg
    Member
    Posted 9 years ago #

    Thats too funny, I do have my own blonde moments, not too often though

  9. vkaryl
    Member
    Posted 9 years ago #

    Yah. I CAN laugh at my own idiocies, I promise you.... I'll report back tomorrow!

  10. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    It's all about cookies. The theme cookie is set against the Blog Address. If you are visting your site through a URI that is different than your Blog Address, the cookie won't do it's thing. The usual cause is a www prefix.

  11. vkaryl
    Member
    Posted 9 years ago #

    Nope - no www prefix, Ryan, and thanks for posting. The single dif so far is as described above....

    I'll do some concerted testing tomorrow after we haul hay in the morning - gotta feed the 4-feets first. I'll report back as soon as I have something concrete to show.... believe me, at this point it will no doubt be something even an idiot should know (so I'm obviously even DUMBER than that....!)

  12. vkaryl
    Member
    Posted 9 years ago #

    Ryan: I had to change this line in each header<a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?> to a straight index.php URL call.

    I haven't set up but one category really yet, I still have to look to see what happens from there, Root.

  13. Root
    Member
    Posted 9 years ago #

    Thanks for that - I am following this closely. I am beginning to see it on other sites now. Nevertheless - in fairness I should add that Ryans device is a very nifty piece of kit, and he has done masses of work on all things themes - which is why we are now having a lot of fun. Bound to be the odd glitch. Cookies are temperamental anyway.

  14. vkaryl
    Member
    Posted 9 years ago #

    Yeah - cookies ARE the devil in a lot of ways.... Oh yes, I LOVE the theme-switcher, and have no plans to go away from it!

  15. Root
    Member
    Posted 9 years ago #

    Now if I could just uninstall K******.....................

  16. vkaryl
    Member
    Posted 9 years ago #

    We'll work on that, okay? I'm sure there must be a way - it truly makes no sense that I and others have no need for it, but you are required to keep it! Nonsensical, totally illogical....

  17. jennmiller
    Member
    Posted 9 years ago #

    I suppose that my simple old 1.2.2 converted themes are just lucky for me (thank goodness). I'm also using Borderline Chaos and having no problem with it. I really don't think that the WP world is divided into Kubrick vs. xx. There are plenty of themes using the switcher with no problem, and I know they are not all Kubrick or even modified Kubrick. Just a quirk or left-out piece of code, I guess.

  18. vkaryl
    Member
    Posted 9 years ago #

    Root, I did check on the category situation a bit. I can't make my setup act the way yours does. But then I hadn't really noticed it previously, so perhaps what I tweaked fixed that too?

  19. Root
    Member
    Posted 9 years ago #

    Perhaps you could tweak mine. I have disabled it till I get this figured. Thanks for your continuing interest in this mysteriousness :)

  20. vkaryl
    Member
    Posted 9 years ago #

    Well, I tend to pick away at things - like why the "links" header in a sidebar won't display the same way as the "categories" header does.... which eventually meant I had to edit an <h2> tagset out of links.php....

    I know there are people who worry that you break things if you tweak; I'm the queen of redundant backups, though, so if I bork something I just load a backup and go on my merry way!

    If I think of anything that might help, I'll holler....

  21. vkaryl
    Member
    Posted 9 years ago #

    One more thing to be chased down: if the theme(s) you are using have "single.php" included in the pageset (some of mine do, some don't), you have to change the same info on that page as well. That leads me to believe that there may be other pages with the same "bloginfo" and "name" calls, which cause the "default" theme to be loaded when "homing" from an "inside" page (like comments pages, or category lists....)

    Still in "detective mode" here....

  22. Root
    Member
    Posted 9 years ago #

    Well you are definitely on to something. To add to the mystery why does the Classic have a lot less files than the default? Wheres all the stuff ?

  23. vkaryl
    Member
    Posted 9 years ago #

    I wondered that myself.... and I don't have a clue! Another thing to look into....

    In the 5 themes I'm using right now, it varies which files need to be edited as to the <a>"><?php bloginfo('name'); ?> line: all of them needed either index.php or header.php edited, two of them have needed single.php edited, one of those two also needed page.php edited. The other files in all of them, no matter what or how many, didn't make that call to the bloginfo stuff....

  24. Root
    Member
    Posted 9 years ago #

    Do I detect a latent need for er protocols, conventions and er standards emerging ? Its tedious stuff but we all need it.

  25. vkaryl
    Member
    Posted 9 years ago #

    Um. It ain't latent.... I've been thinking so ever since I've been whacking at various code/scripting langs ever since I got a computer in 1984. I don't program, I don't write anything but MUSH softcode, but I have an eye for patterns and a nose for problems.... One thing I'm pretty good at is tweaking scripts - as long as they aren't REALLY involved - and I'm pretty good as well at finding mis-paired and missing brackets, braces and other delimiters.

    One of these days I really DO need to learn to program.... then maybe I can do something to HELP with those "standards".

  26. Root
    Member
    Posted 9 years ago #

    Are you good at finding missing socks ? :)

  27. vkaryl
    Member
    Posted 9 years ago #

    Sweetie, the dryer ate them.

    [Edit: unless you use a clothesline or the hedge out doors, in which case the dog stole them; or if you use the bathtub ledge, the cat's nesting in them....]

  28. jennmiller
    Member
    Posted 9 years ago #

    Well I have a question now. I'm not understanding why people are having issues with placing the code on each theme. Doesn't code have to be placed into each theme for things such as weather, recent comments, and most other "viewable" plugins? It's not just the theme-switcher that must be added. Correct me if I'm wrong, but do any plugins just "show up" on your page without manually placing the code where you want it to show? Otherwise, there would be a slew of "How do I get this to show up on top of the sidebar but below the links?" and the like.

  29. Root
    Member
    Posted 9 years ago #

    Well yes and no. Core functionality needs to be consistent or it wont work at all.

  30. jennmiller
    Member
    Posted 9 years ago #

    See? That's why I'm best off sticking to my old "index.php and style.css" ONLY themes ;) I swear I must be the luckiest girl alive. The few newer themes I've added have worked with no problem. I should play the lottery tonight.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.