Custom theme not implementing my css (3 posts)

  1. richa837
    Posted 5 years ago #

    I have made a theme for wordpress.But in the index.php file i had to give the path of csslike
    <link rel="stylesheet" href="wp-content/themes/newTheme/style.css" type="text/css" media="screen" />

    which i think should be

    <link rel="stylesheet" href="style.css" type="text/css" media="screen" />

    Same with images,i hadto give complete path.

    Is this a right practice for making themes?
    how it should be resolved?

    Please help asap!

  2. Michael
    Part-Time Forum Moderator
    Posted 5 years ago #

    this is 'normally' the line to call style.css of a theme:

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

    for images which are located in the /images folder of the theme, the path would be:

    <img src="<?php bloginfo('template_url'); ?>/images/this_image.jpg" />


  3. richa837
    Posted 5 years ago #

    Thanks,can u help me how i can make the link "Subscribe to our RSS feed" work for my website...I will have to use plugin or anything else...if yes how can i incorporate that into my sidebar....

    Please help

Topic Closed

This topic has been closed to new replies.

About this Topic