Edit search results page in Oceanwp
-
Hi there,
is there any way to edit resp. change the appearence of search edit page in oceanwp? I am using Elementor too, and also AE Templates, which I used to edit the single post entry.
Thank you very much in advance
Stanko
- This topic was modified 6 years, 8 months ago by stankoberonja.
-
Hello, not right now, but soon with Elementor Pro 2.0, you will be able to customize every archive pages.
Yoooo, thanks…
You’re welcome ??
Sorry, one more question: is it possible to edit blog entries? Except what you can do on cusomize size. One thing is driving me crazy: when I embed a video via oceanwp video player, it shows in excerpt the video link, and then comes excerpt – why on earth? Normal wordpress video plugin is not doing this, but it’s messed up on mobile and tablets. Is there any code I can inject or setting I am not seeing it?
Hello, it is not possible to display a video in the excerpt, what you can do is to display the full content of your posts, then add the MORE tag so you display what you want.
Hi,
I have almost the same problem, almost.
I don’t want to use elementor to design my search page result. I just want to see the “title page” and add a margin-top 30 px for the content below, but I want to apply this setting only on this page.Here the page URL maybe this can help to understand my problem.
https://chaletsetcaviar.exiscom.fr/?s=&post_type=pageThx ??
Hi, try this css code:
.search-results #main #content-wrap { padding-top: 150px; }
It’s perfect !
Thank you !!
You are welcome ??
Hi there,
I’m having trouble with the search results page displaying previews of elementor pages rather then linking to the page itself. I think there is something in the theme that causes this issue.
Can you help me figure it out?
Thanks,
Anu
Hello @apolamraju, can you open a pre-purchase ticket with as many details as possible and if you can the login details of an admin account? We will see what can be wrong.
Hi there,
I would like to ask you to give me some advice about following thing:
How and where can I modify these texts ?n the search results page: “search results found” , “search results for”
I use child theme.
Thank you in advance!
Evelin
Hello,
You will see these texts in the helper file in the OceanWP theme > inc > helper.php file. Modify these texts as per your need.
@apprimit thanks for your help! I found and modify the text “search results found” in the inc/helper.php file, but on the public page it did’nt change. And I found the text “search result for” in the inc/breadcrumbs.php file, I also modified it, but on the public page nothing happened. Can you give me some advice why can not modify these?
Thank you!
- This reply was modified 6 years ago by emeszaros6.
Copy the function from the helpers.php file and paste it into the functions.php file of the child theme and modify the text. See the function below.
if ( ! function_exists( 'oceanwp_title' ) ) { function oceanwp_title() { // Default title is null $title = NULL; // Get post ID $post_id = oceanwp_post_id(); // Homepage - display blog description if not a static page if ( is_front_page() && ! is_singular( 'page' ) ) { if ( get_bloginfo( 'description' ) ) { $title = get_bloginfo( 'description' ); } else { return esc_html__( 'Recent Posts', 'oceanwp' ); } // Homepage posts page } elseif ( is_home() && ! is_singular( 'page' ) ) { $title = get_the_title( get_option( 'page_for_posts', true ) ); } // Search needs to go before archives elseif ( is_search() ) { global $wp_query; $title = '<span id="search-results-count">'. $wp_query->found_posts .'</span> '. esc_html__( 'Search Results Found', 'oceanwp' ); } // Archives elseif ( is_archive() ) { // Author if ( is_author() ) { $title = get_the_archive_title(); } // Post Type archive title elseif ( is_post_type_archive() ) { $title = post_type_archive_title( '', false ); } // Daily archive title elseif ( is_day() ) { $title = sprintf( esc_html__( 'Daily Archives: %s', 'oceanwp' ), get_the_date() ); } // Monthly archive title elseif ( is_month() ) { $title = sprintf( esc_html__( 'Monthly Archives: %s', 'oceanwp' ), get_the_date( esc_html_x( 'F Y', 'Page title monthly archives date format', 'oceanwp' ) ) ); } // Yearly archive title elseif ( is_year() ) { $title = sprintf( esc_html__( 'Yearly Archives: %s', 'oceanwp' ), get_the_date( esc_html_x( 'Y', 'Page title yearly archives date format', 'oceanwp' ) ) ); } // Categories/Tags/Other else { // Get term title $title = single_term_title( '', false ); // Fix for plugins that are archives but use pages if ( ! $title ) { global $post; $title = get_the_title( $post_id ); } } } // End is archive check // 404 Page elseif ( is_404() ) { $title = esc_html__( '404: Page Not Found', 'oceanwp' ); } // Anything else with a post_id defined elseif ( $post_id ) { // Single Pages if ( is_singular( 'page' ) || is_singular( 'attachment' ) ) { $title = get_the_title( $post_id ); } // Single blog posts elseif ( is_singular( 'post' ) ) { if ( 'post-title' == get_theme_mod( 'ocean_blog_single_page_header_title', 'blog' ) ) { $title = get_the_title(); } else { $title = esc_html__( 'Blog', 'oceanwp' ); } } // Other posts else { $title = get_the_title( $post_id ); } } // Last check if title is empty $title = $title ? $title : get_the_title(); // Apply filters and return title return apply_filters( 'ocean_title', $title ); } } /** * Returns page subheading * * @since 1.0.0 */ if ( ! function_exists( 'oceanwp_get_page_subheading' ) ) { function oceanwp_get_page_subheading() { // Subheading is NULL by default $subheading = NULL; // Search if ( is_search() ) { $subheading = esc_html__( 'You searched for:', 'oceanwp' ) .' "'. esc_html( get_search_query( false ) ) .'"'; } // Author elseif ( is_author() ) { $subheading = esc_html__( 'This author has written', 'oceanwp' ) .' '. get_the_author_posts() .' '. esc_html__( 'articles', 'oceanwp' ); } // Archives elseif ( is_post_type_archive() ) { $subheading = get_the_archive_description(); } // Apply filters and return return apply_filters( 'ocean_post_subheading', $subheading ); } }
- The topic ‘Edit search results page in Oceanwp’ is closed to new replies.