• Resolved Shashikanta

    (@sashikanta)


    Hi Please see this blog, I made a Themes for this and all images and Styles are not coming or else everything OK.

    http://blog.sashikanta.info

    I have all images in ‘images’ folder
    All Javascript in ‘Js’ Folder
    and All CSS are in ‘CSS’ Folder

    Do i need to take off from there or Do i need to change any Path?

    Currently i am using ‘../images/filename.ext’ in CSS etc.

    Please help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You’re not creating the paths correctly…

    When you use..
    some/path/to/file
    or
    /some/path/to/file

    You’re effectively linking to the root level of your server or WordPress install..

    In your theme, create the paths like so.
    src="<?php bloginfo('template_directory'); ?>/somefolder/somefile"
    href="<?php bloginfo('template_directory'); ?>/somefolder/somefile"
    * sure you get the point.. 😉

    NOTE: This doesn’t apply to the style sheet, just images/someimage.jpg should be fine, unless you’re in a folder, then ../images/someimage.jpg is fine… 😉

    This part..
    <?php bloginfo('template_directory'); ?>

    Will effectively create the correct path for the template, eg. wp-content/themes/YOURTHEMENAME/

    Thread Starter Shashikanta

    (@sashikanta)

    Thanks t31os!!!

    You solved my problem, You’re Best!!!

    Thanks Once Again.

    Welcome… 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Themes rendering problem’ is closed to new replies.