How to link file or image from wordpress plugin dir to theme by using themes function.php, is it possible?
You are almost there. Try plugins_url(‘plugin_dir_name/img/name of.png’).
You are almost there. Try plugins_url(‘plugin_dir_name/img/name of.png’).
“pages […] do not show” Page content is stored in the database, not as part of your theme. It sounds like you’ve uploaded your theme to the hosted installation of WordPress, but you haven’t yet copied your local database to the hosted installation.
Compare the exact sizes you want with an inequivalence operator instead of a less than. In other words, change your < to !=
Rotating Header Images
Site assets not loading from a subdomain
I would suggest WordPress multisite. You can either use it with subdomains or sub-directories, there is a bit of a setup but the link has instructions for you. Once installed you can set different themes for each site.
Detecting index.php specifically may not be the best option because this template file is used in many cases in WordPress. Eventually, all pages will fall back to using index.php if no other template file is associated with this page. So instead of targeting index.php, get familiar with template hierarchy and try to use conditional tags, … Read more
The only possible kink is that functions.php of child theme is loaded before that of parent theme. So you would have to keep that timing in mind. Outside of that normal PHP mechanics apply, both parent and child theme run in same WP environment. Of course it somewhat depends on parent theme if class is … Read more
Since you have developed custom theme, just zip your theme folder. Now login to your client WordPress site,From dashboard menu select Appearance->themes -> click to add new-> click upload theme. now upload your zip theme folder and active the theme.
The parent theme has a active selector which the child may not have. http://www.w3schools.com/cssref/sel_active.asp