$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Images do not show in the website, but they appear on new tab|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Images do not show in the website, but they appear on new tab

matteradmin12PV0评论

I am new to wordpress. I updated my wordpress website to the current version since I did not take care of it since 2013.

However, after I updated it, my images do not appear on my website anymore. The pages only shows white blank space where the images should be. I can open the images on new tabs without any problem.

I suspect that the problem lays on the theme setting, because when I changed to the other theme, it worked.

I want to keep my current theme for my website. Where can I check the code to get the images?

I am new to wordpress. I updated my wordpress website to the current version since I did not take care of it since 2013.

However, after I updated it, my images do not appear on my website anymore. The pages only shows white blank space where the images should be. I can open the images on new tabs without any problem.

I suspect that the problem lays on the theme setting, because when I changed to the other theme, it worked.

I want to keep my current theme for my website. Where can I check the code to get the images?

Share Improve this question asked Nov 4, 2018 at 22:45 Laura KimLaura Kim 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

You will need to learn about the Template Hierarchy, which is the process that is used to select the code that 'builds' the page. Within the template is the code that will display images, content, etc.

You will also want to learn about "Child Themes", which is a way of customizing a theme without affecting the theme code. You don't want to modify the theme's code because any changes you make will be overwritten by a theme update.

You might also consider contacting the theme's support forum to ask questions there about your theme. You have already determined the theme is at fault, so the theme's support is the place to ask questions about theme problems.

So, the template is what needs to be changed. And to do this properly, create a Child Theme and copy your theme's template in there, and modify that code.

Post a comment

comment list (0)

  1. No comments so far