Warning: strpos() [function.strpos]: needle is not a string or an integer in /home/digitopi/public_html/portabilitate.com/blog.portabilitate.com/index.php on line 61
OnlyOne Blog - Wordpress image relative path to theme
Wordpress image relative path to theme 
Pentru a putea pune o imagine in o tema wordpress, folosind o cale relativa la tema nou creeata, trebuie folosita urmatoarea secventa:

<img src="<?php bloginfo('template_directory'); ?>/images/image.jpg" title="" alt="" />

unde folderul images este in folderul temei active.

Alta problema este inserarea unei imagini salvata in folderul images intr-un post prin o cale relativa. Se pot incerca variantele:
../wp-content/themes/theme_name/images/the_image.jpg
sau
../images/the_image.jpg

[ view entry ] ( 2326 views )   |  permalink

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | Next> Last>>