Forums

[resolved] Lost CSS styling on all sub pages - permalinks issue? (3 posts)

  1. XenonWebDesign
    Member
    Posted 3 months ago #

    Hi all,

    I seem to have a lost my CSS on all sub/child pages. I suspect (from searching the problem) it has something to do with changing my permalink structures to the post name structure. Seems strange, because all my top level pages are styled correctly. Images seem to be unaffected.

    Here is my top-level home page: http://thamesvalleytennis.com/
    Here is a sub/child page: http://thamesvalleytennis.com/our-services/cardio-tennis/ (located under the 'Services' drop down)

    Thanks in advance for the help!

    Kind regards,
    Steve
    [signature moderated]

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 months ago #

    instead of a relative path, use:

    <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_directory_uri(); ?>/royal-blue.css" />

    http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri

  3. XenonWebDesign
    Member
    Posted 3 months ago #

    You superstar, thanks a lot that worked perfectly.

    Thanks for tailoring your answer to my "royal-blue.css" path too, helped me out!

    Regards,
    Steve

Reply

You must log in to post.

About this Topic