I solved this by copying the divi index.php and placing it in my child theme as search.php
I then found where the title and altered it with the below code:
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>">
<?php $post_type = get_post_type( $post->ID );
echo $post_type . ": ";
the_title(); ?>
</a>
</h2>
Probably not the correct way to do it but the result was perfect. My search results now have:
Blog: ‘Blog title’
Page: ‘Page title’
etc
Related Posts:
- How to redirect to post if search results only returns one post
- Possible to search by author name with default WordPress search function?
- paginate_links() don’t properly work in search.php?
- Filter the query ONLY for the search results page
- Extending the site search to include a single custom field
- Modify search function in WordPress (TwentyTwelve)
- How to customize search result page title?
- Display WordPress Search
- Search user metadata with checkboxes via ajax (almost working)
- Searching for content post
- changing behaviour of get_search_form
- Search filter by Post title OR Meta Title Value [duplicate]
- Using wp_redirect and .htaccess to re-route searches (and pass along the remaining GET vars)
- paginate_links() don’t properly work in search.php?
- How to rewrite wordpress search to work on specific category
- two search forms on the same page
- search form leads to 404
- Custom function for search form
- WordPress: Highlight search result exact matches
- Limiting WordPress Search function : Custom build
- More than one search results page template for two searches on site
- How do i create a search option for pdf’s only
- Form output outside of container
- Limit Number of Posts on Blog Category Page Throwing 404 Error on Paginated Pages
- us states dropdown function and echo in theme template files
- Pagination in Search result
- Make WordPress search for only this tags or exclude certain tags from search [duplicate]
- child_of not working while searching
- Search Woocommerce product titles only
- Custom Post Type Search
- Ajax call always returns 0
- How to override a function when isn’t at functions.php
- Where and how to put inline js in pages
- Show modified time if post is actually modified
- Hourly Routine Not Firing ( wp_schedule_event() )
- Fatal error: Call to undefined function add_action() – an untouched problem
- echo or print_r in an admin function
- Overriding methods in a child theme
- Automatically Add Specified Value to Attachment Metadata upon Upload
- WP disobeys disabling of the posts revision feature
- Twenty Eleven Child theme error when attempting to use a rewritten function
- wp_trash_post function to only apply to posts, not pages!
- WooCommerce product search titles only
- Adding widget to dashboard with wp_dashboard_setup not working
- qTranslate in functions.php
- Using Schema with `the_excerpt`
- Image rotation fails to regenerate custom sized thumbnail
- Register and load scripts
- How to rewrite the custom url in wordpress?
- About cron delete user with meta_key
- Unable to login using username
- How to change the order of Jquery in the footer of my theme?
- adding custom script to functions file
- edit formatting.php in a theme so it wont get overwritten
- add_action template_redirect not working for home page
- Way to store featured image width and height in two separate variables?
- Insert template-part inside the content
- Got white blank page after copying the functions.php to child theme
- Add unique id to Preview URL
- Numbering lines of code with the tag?
- Latest Foursquare Checkin function
- Functions php shortcode for displaying main menu with no child items
- Redirect to other page if login
- first paragraph of the_content as meta description
- get_terms (or tax_query) for term of current post?
- 404 when enqueue_script using plugin_url
- WP Customizer API loaded into functions.php
- Do we need to change our child function.php to require/include child dir files when we add an over-riding file.php into the child theme
- How to use get_posts() function in functions.php
- Page Template Won’t Load Correct CSS File
- How Can I add a menu to the theme from withen the function.php file
- How to display this meta data (an array) in form of a function (created with a custom write panel)?
- WordPress – using sessions?
- Use a filter for wp_robots to block CPT/feed/
- Trigger email alert if file downloaded
- Completely Disable WordPress RSS Feeds
- How to hide content on mobile in the functions.php file – woocommerce
- Running javascript without hooking wp_head
- WordPress Lite/Light
- Selecting specific query for offset
- Is_Page doesnt detect my page
- Show image after X para – center aligned
- Problems adding a new field to product in cart
- what is `get_section()` and how to use it?
- function replace_text for entire page
- Only Show One Category Name Per Post
- Pass max posts to Javascript
- update_usermeta don’t work
- Create html from function
- WP supersize not displaying when different languages flags are selected
- wp_list_pages change of children and anchor of parent
- Admin Panel errors because of functions.php
- Using Output from one Function and calling it into another
- How to add a class and title attribute to the link generated by next/previous post
- “Headers already sent” while trying to add a CSS file to my login page?
- Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73
- Bulk set Post Title as Tag where Tag is Empty Function
- Get all users from role and add to dropdown (select) – wordpress, javascript
- Add functionality to block comment authors in the Comment edit pag
- WordPress enque the same script causes the setInterval not to work