Link To Images Folder in your WordPress Child Theme
-
FOR PHP PAGES;
<img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/picture.png” alt=”seo friendly text”>
FOR POSTS/PAGES;
Install the Insert PHP Plugin by WillBontrager, this will allow you insert php into posts and pages with two simple tags [insert_php] php code here… [/insert_php]https://wordpress.org/plugins/insert-php/
<img src=”[insert_php] bloginfo(‘stylesheet_directory’); [/insert_php]/images/picture.png” alt=”seo friendly text”>
-
we use this code for to link all of our images when designing new templates at graphictoronto.com
-
This is the WordPress.COM support forum. You need to post to the WordPress.ORG support forum for help with your site because it is not hosted by WordPress.COM.
WordPress.com and WordPress.org are completely separate and different http://support.wordpress.com/com-vs-org/
If you don’t have a username account at WordPress.ORG click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post to the support forums there and receive advice from WordPress.ORG bloggers.
-
-
- The topic ‘Link To Images Folder in your WordPress Child Theme’ is closed to new replies.