WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. XenonWebDesign
    Member
    Posted 1 year 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
    Forum Moderator
    Posted 1 year 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 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Topic