Wordpress Image Paths -


i'm developing new site on wordpress replace old drupal site. site being developed on 'dev.website.com', , moved 'website.com' once completed.

i'd use relative image path 'images/logo.png' instead of absolute path it'll make switch lot easier, won't have manually remove 'dev.' before every single reference file path on site.

is there plugin this, or setting within wordpress admin itself? i've looked @ loads of articles seem pretty complex thought simple fix.

any massively appreciated!

i use <?php bloginfo('stylesheet_directoy'); ?>/images/image.jpg create lot of child themes , works perfectly.

you can define constant define(imgpath, stylesheetpath . '/images'); , use <?php imgpath . '/logo.png';

stylesheetpath constant wordpress uses.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -