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
- Add button to kitchen sink toggle
- Get User Login Data (date, time… )
- How to know if user logged in
- Option Tree integration of Custom CSS
- Modify post filter to set custom number of posts per page and exclude child posts
- Remove “Published On” inside wp-admin
- Can’t call Javascript function – scope?
- Deprecated function get_user_by_email($email)
- Changing parent element’s class or style
- header_image() with CSS
- Shortcode parse error – wrong syntax
- User function to return multiple get_post_meta()
- Why does get_template_directory_uri() not include “www”, only for enqueued stylesheets?
- Getting commenter meta
- Run a jquery script on on a certain template page
- Add a field into a shortcode of an extension
- Unable to point the child theme directory even using get_stylesheet_directory()
- Need a method to prevent WP from adding in between my shortcodes
- How to edit/replace Parent functions.php function in Child Theme to add “Walker” class
- Load scripts for do_shortcode( ‘ [ my_shortcode ] ‘ )
- How to modify get_the_excerpt() when post-format equals ‘quote’?
- Get the alphabetical sorted data with wpdb
- New checkbox in custom widget isn’t saving data
- WordPress Check User Role Function (multiple roles)?
- Post to category based on email domain, for a post-by-email plugin
- Featured Image keeps cropping
- struggling with syntax for the_post_thumbnail();
- Echo youtube code from url or shortcode
- Woocommerce Default sorting product by product type
- Displaying registered sidebar after post content
- Create a CUstom Archive by Year, but just for a Single Category
- Malfunction via Safari [closed]
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- Allow user select role in wordpress default registration without plugin
- Display link to category over featured image
- Does hook have an effect on increasing the page load?
- Adding a schema code to one specific page using functions.php file
- Multiples functions on customize_register?
- Can I call a functions.php file from a different URL?
- Javascript file loads only on homepage, not on other pages (404 not found error)
- price of product can’t return when get data of product in functions.php
- Re-style Login Form Whilst Keeping CSS Separate from Frontend CSS
- Can You Set A Minimum Image Dimension For Resizing Images?
- Getting value of variable from functions.php and debugging it
- use add_action in a shortcode (gravity form – WordPress)
- Creating a “Related Meta” type field?
- Function image_send_to_editor returns emty title tag
- Modified functions.php in Magazine Pro theme of Genesis. 500 error
- require_once() Causing categories and tag pages on dashboard to not refrsh
- Display ads on post in a particular category
- Using Switch Statement to Change Image According to Last Digit of Topic ID
- Help with is_page() and calling css for specific pages in a Child Theme
- how to create php file and load it in wordpress post?
- wp_nav_walker that interacts with widgets to setup mega menu
- Update functions.php from WordPress dashboard
- How to Add A Rel Filter to All Links?
- Using conditionals, maybe from a DB, to register & enqueue files, for varying pages, in functions.php
- Function working in single.php but not working in custom template file
- Add function to add element on all page
- Function in functions.php by url
- get USER ID in functions.php using user_register action
- Adding a filter to my posts
- trouble with passing class method data to outside function
- comment_post function with js not running
- My website is generating weired url parameters of paginated pages
- Whats the proper way to add a new user via a front end form?
- Logout redirect via page template without confirmation?
- How can I modify or filter this variable in an existing class? (Mai Theme)
- How to trigger an update_option
- WP backend, Show only own comments (give to users who wrote/published/assigned) posts