• When I go directly to my site, all is good. However, when I navigate to my site with a bad link ie) https://www.mysite.com/somebadurl/

    Then something strange happens…

    The home page shows up, but all the settings & customizations are not picked up. I use the mystique theme (latest version) and have a custom background, custom logo, custom background color, etc… The color goes to standard black, the css customizations dont come up, and although the logo comes up, the background image doesnt..

    Has anyone else had this? Am I missing a setting somewhere? Advice?

    Thanks,

    Andrew

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter maxina

    (@maxina)

    Ok, so a further hint, and I am not sure how I would remedy this, but the custom css is stored in a (what I think) is a post.

    At the top of my page output, I have this:

    <style type="text/css">
     @import "https://www.mysite.com/wp-content/themes/mystique/style.css";
     @import "https://www.mysite.com/?mystique=css";
    </style>

    now, if I give it a bad url, say https://www.mysite.com/badurl/ then I get this:

    <style type="text/css">
     @import "https://www.mysite.com/wp-content/themes/mystique/style.css";
     @import "https://www.mysite.com/badurl/?mystique=css";
    </style>

    the second line will fail to bring back the proper css config content and as such, cause the page to display incorrectly. So, is there a way to “hard code” this so that it doesn’t occur? By that I mean disallow anything but the site root on the second line? If so, where does one find that in the maze that is the wordpress code?

    Thanks,

    Andrew

    usually the css links are in the <head> section of header.php in the theme

    Thread Starter maxina

    (@maxina)

    RVoodoo,

    Thanks for your reply,

    I think what my issue primarily is comes down to not knowing the WP hooking architecture well enough. What I DO know is that the theme calls the wp_head hook that goes off and does what it does.

    Now, I am spit-balling here, but what I do understand is that hook is executed somewhere in the bowels of the WordPress code base, however, the configuration of such is done somewhere in the functions.php file. I still don’t know how to decipher what is going on, but I hope someone could steer me in the right direction…

    Anyone at all.. *cough*

    Thanks!

    Andrew

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Mystique – 404’ is closed to new replies.