简体   繁体   中英

Wordpress child theme images are coming up blank

Ok for some reason all images are not linking to the right directory after the latest update.

normal child theme setup;

normal html and php to customise theme.

foot.php

 <div id="left_arrow"><img src="'.get_stylesheet_directory_uri().'/left_arrow.png" alt="image" width="372" height="551" /></div> 

I have no idea why this is not working any ideas?

You need to open PHP back up in your code. The above comment was missing the closing ; on PHP. The one below worked on PHPfiddle.

<div id="left_arrow"><img src="<?php get_stylesheet_directory_uri(); ?>/left_arrow.png" alt="image" width="372" height="551" /></div>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM