You’ll have to give a little more explanation.
But I think that the problem is that you are using get_template_directory_uri()
as an anchor link. What get_template_directory_uri()
does is to give you the URL of your theme, for instance you can get your “/assets/images” folder like this.
If your site structure is “theme_folder/page1.php” then I recommend you to better use a Page template
Page templates let you create a new page from WP Admin and have an specific design of yours.
Related Posts:
- How to set and use global variables? Or why not to use them at all
- How to Add Image to WordPress RSS-Feed with no Plug-in?
- Is it possible to disable a function of a parent theme?
- Hide old attachments from wp media library
- Enqueue Javascript Correctly for 3.5
- How to add active class to custom menu using while loop and wp_list_pages
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- Add footer.php to WordPress child theme
- Need to get specific data from array
- WooCommerce – Display variation custom field value [closed]
- Restrict WordPress File Type Uploads by User Type
- New Plugin Review
- Problems with function on function.php
- Woocommerce HTML email option unavailable
- Use template for posts with a particular category grandparent
- How to slow down server response
- Click loads template via ajax
- Sort registered users by post count? (inside admin dashboard)
- How to change a public function inside a class of a plugin?
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- Function set default image when image not present
- WooCommerce – Reset quantity input field when variation changes
- Use menu link or onClick to set a variable
- Automatically remove a canceled order in Woocommerce
- Trying to establish connection to External Database
- WordPress add post format support not working
- How to remove the cufon script from Dzonia Lite theme [closed]
- Login/logout in header
- How to put “Read more” link in Custom Excerpt inside p tag?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Get users that likes the post
- How to abort saving data in save_extra_profile_fields function WordPress?
- Create highly customized submenu (possibly using wp_list_pages)
- Get the date of the className or classID
- $wpdb->wp_users returning empty value for
- WordPress Custom field Colors
- php syntax : [ && ] between commands [closed]
- My custom get_the_excerpt() can’t get excerpt by ID
- Which PHP page is the Default Posts Page
- meaning of (array)function()
- Need to put a script above tag in header.php – WP 5.7.1
- Sending a custom form data in email through WP Mail Function
- deactivating an active plugin using if page
- Isotope Drop Down Categories Filter Function
- How to use array in function to get only value I want
- How to add PHP code in functions.php wordpress
- add_filter function concatenate string and locate_template function
- How to return a string that has a jQuery and Ajax inside in a shortcode?
- How to use the checked() function to check for a non-empty var
- get_page_templates only return templates with “home” in the filename
- Nav-Menu not showing up
- Show different website layout if no sidebar added
- How to pass hook variable to function?
- Migrating site, only header shows
- Custom functions for string data calculations
- How are these PHP functions applied to a specific page in WordPress?
- remove specificly the last tag in all posts
- Let current user know pending posts counts using wp_query
- How to check post meta isset or not empty during publish/save post?
- how to changes mobile menu toggle breakpoint in WordPress
- Get page permalink in contact form
- How to display already created menus via php?
- Grabbing Image name From Product Image Gallery
- “pre_get_posts” orderby custom date field in different format?
- Reliable way to add nonce to HTTP Header in WordPress?
- Gutenberg block don’t save rich text content
- remove_action from parent theme using child theme functions.php
- Cant get blog name with get_option
- php code for outputting a custom page in my account
- Remove span tags from WooCommerce Downloads page
- Extra editor on top of default in Custom Post Type
- How do I fix Undefined variable using $_POST in function?
- How to add typehints to function in functions.php when argument is an object?
- Pagination 404 error(I have refreshed the permalinks and tried several previous options)
- How Can I Display the Last Modified Date for User Profiles on WordPress?
- Add element after navigation element title don’t works like I expect
- Get Billing Email from WooCommece Checkout and Pass to Fullstory JS
- How to delete specific element when it is not homepage?
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- How can I include tags in wordpress search without a plugin
- How can I display a query in a page?
- Using catch_that_image() for galleries?
- How to set up an auto delete post?
- apply_filters() function
- Get category id for a custom category and display it in a class
- Using tag to output text in Genesis?
- Conditional Content Display
- wp wp_register_script function results type parameter missing
- php “use” not working in template [closed]
- How to add margin underneath woocommerce total price amount -> productpages
- What is the wrong with this function to enqueue the scripts and styles to the theme? [closed]
- Warning: Attempt to read property “term_id” on int – Woocommerce
- Warning: filemtime(): stat failed for wp_
- Keep users logged in Without Remember Me
- How to use js variable to php in wordpress functions.php
- Understanding responsive imagery
- Why a class property becomes empty?
- Hide category by tag
- How to get meta box labels?
- How do I stylize selected comments?