Forums

[resolved] Themes rendering problem (4 posts)

  1. sashikanta
    Member
    Posted 2 years ago #

    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.

  2. Mark / t31os
    Moderator
    Posted 2 years ago #

    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/

  3. sashikanta
    Member
    Posted 2 years ago #

    Thanks t31os!!!

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

    Thanks Once Again.

  4. Mark / t31os
    Moderator
    Posted 2 years ago #

    Welcome... ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags