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

  1. XenonWebDesign
    Posted 3 years 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,
    [signature moderated]

  2. Michael
    Part-Time Forum Moderator
    Posted 3 years 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" />


  3. XenonWebDesign
    Posted 3 years ago #

    You superstar, thanks a lot that worked perfectly.

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


Topic Closed

This topic has been closed to new replies.

About this Topic