WordPress.org

Ready to get started?Download WordPress

Forums

CSS not applied on page (3 posts)

  1. regevlio
    Member
    Posted 2 years ago #

    Hi,

    I'm building a new template,
    I have built a php file for contact-us details and im using the general style.css for styling.

    The call for the style-sheet is located in the header and here is my code:

    <link rel="stylesheet" type="text/css" title="Default Styles" media="screen" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

    on my homepage (index.php) the style is applied and everything is just fine.

    but when i try loading a page (index.php?page_id=129)
    the style is applied only for the footer and header but for some reason ignores the contact-us module.

    any clues on why that may happen ?

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    please post a link to your site.

    without seeing the problem, it is quite impossible to comment on any possible cause.

  3. SaranR
    Member
    Posted 2 years ago #

    you may doesn't have style for contact details in your style.css file. thats why its not working...

    if you have style css for contact details in different css file, you must add the same in your header.php as below,

    for example your css name is contact.css

    <link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo( 'stylesheet_directory' ); ?>/contact.css" />

    [sig moderated as per the Forum Rules]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags