Code is not readable in comment so I am adding it here. With a little explanation.
You will need to add full path of the image file to show them in theme. If your image is in theme directory then you will have to use theme directory path variable bloginfo('stylesheet_directory') with image name. So this is the code you will need to add in your theme files.
<div class="the-image">
<img src="https://wordpress.stackexchange.com/questions/170852/<?php echo get_template_directory_uri(); ?>/images/moonrise_100.jpg" alt="moonrise" />
</div>
Related Posts:
- WordPress API Menu/Submenu Order
- WP 3.4 – what action/hook is called when theme customisation is saved?
- What WP folder can I use to write files to?
- Is it good to rename theme folder downloaded from WordPress.org?
- Editing the custom background CSS
- What, specifically, should be included in theme_name_setup()?
- How to get gallery images?
- Is the theme customizer slowing down my site?
- How can I get wp_head() as a string instead of echoing it?
- Display a different theme for not logged-in users
- Best practice (forward compatibility) for theme options
- Add colors to existing color palette without replacing it
- What does “Do not deregister the jquery script in the administration area” mean?
- What is the best book to learn how to make themes for wordpress?
- Symlink a directory to wp-content/themes
- What are WooCommerce starter themes? [closed]
- How to disable the gradient and font size internal CSS added by WordPress when using theme.json
- Is there an error in get_the_tag_list()?
- Example of a theme organization without all the default wp files in root
- Returning Variables back into a template
- Disable the Custom Internal CSS added by theme.json for Certain Pages
- Unwanted blank lines before tag
- How do I display the “Archives” widget layout (sidebar) in WordPress by ‘year’ then by ‘months’?
- How do you protect a premium theme from being copied?
- What page should I use for a contact form?
- Retrieve data using wpdb to use for customizer controls
- Custom Nav Walker Displaying Values in Sub Menu
- How to configure wordpress to work with Vuejs with SSR and without hashbang
- How can one update a theme on a live site without interruption?
- Sub folder CSS that’s read by Admin panel
- Some doubts about how to show posts in a custom theme?
- Dequeue a style file which is making website load slow!
- How to remove a file included in parent theme with locate_template() via child theme?
- Can’t delete theme
- How to add a second stylesheet to the editor
- Stylesheet not linking
- How to control layout of posts on page?
- Override template file i subfolders
- Single Page theme [closed]
- Theme Development for WordPress Multisite Installation
- Can I have two different theme for two different language?
- create category on theme setup
- WP_Comment_Query – Get comments and answers separately
- excerpt() shows different result between remote and localhost(development environment)
- Prefix best practice, should we use framework name or theme name?
- Theme Javascript.php Overwritten Nightly [closed]
- WordPress get_template_part() function not working
- How to add Space between sidebar and footer widget in WordPress theme [closed]
- How to place HTML tags in content from the_content()?
- WordPress Theme Creation [closed]
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Integrate WooCommerce theme with a WordPress theme [closed]
- Automated Footer information
- How do you use WordPress for a website that’s not in a blog format?
- How can I hard code my sidebar?
- Simple child theme modification but links are broken
- Making a WordPress theme based on twentyten
- How can I wrap all blog posts image with
- theme style is applied on the dhasboard rather than the website
- Alignment Problem [closed]
- What $handle does WordPress use for a theme’s implicit style.css?
- Issue when posting updates/changes to wordress
- StoreFront WordPress theme: How can i create a new Home page with Custom design same as template [closed]
- Unwanted empty line at the beginning of document
- Why is my container argument not working for wp_nav_menu() [closed]
- Never actually adding the action? Or do I have to call the action?
- best practices for updating wordpress theme
- How to hide custom sidebar on mobile
- help needed for suit designing tool
- How to modify theme content in Thematic?
- How to update mark-up of a gallery block in a custom theme?
- Host Private Custom Theme
- My wordpress theme name isn’t updating straight away
- Customizer API Multi Sections in single Panel
- WordPress theme options checkbox default checked state
- Copying a modified theme from one wordpress site to another wordpress site [closed]
- How can I change this SVG shape that’s generated?
- Adding a second logo next to the main one in header
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How can I fix my theme header for my CSS stylesheet?
- Is hand coding required at all?
- How to show some of category in wordpress
- using themename_the_custom_logo() in template-tags?
- Creating a theme just to deploy a single page
- Creating a Sub Category Template
- Custom page template not showing on page creation
- how can I re-utilize and class on a child theme
- Weird ‘theme update’ error [duplicate]
- Incorrect search results in search.php – issue triggered by using `define(‘BodyID’, ‘search’); the_post();` in search.php
- WordPress two sidebar layout or theme
- Standard Way To Do Custom Work Within A Page?
- Confused on loading page content
- Add Dynamic Sidebar to Exisiting WordPress Theme [closed]
- How can I install my custom-made theme on a wordpress.com blog? [closed]
- Turning WordPress Into full-featured website?
- Why am I getting posts back when I shouldnt
- .submenu class missing in output from wp_nav_menu
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?
- Trying to create a cutom query with pagination and page 2 breaking. Any help?
- Full Site Editing, Block Theme, Gutenberg, Site Editor