WordPress.org

Ready to get started?Download WordPress

Forums

Custom theme not implementing my css (3 posts)

  1. richa837
    Member
    Posted 4 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. alchymyth
    Forum Moderator
    Posted 4 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" />

    http://codex.wordpress.org/Function_Reference/bloginfo
    http://codex.wordpress.org/Theme_Development

  3. richa837
    Member
    Posted 4 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