-
AuthorPosts
-
October 22, 2014 at 8:45 pm #130318
Please try the “Bitumen Gantry” page. I specifically set it to “Layout – Sidebar Left, Content Right”. But the Sidebar will only show when I set “Sidebar Left, Content Right” in the Customizer as well. It won’t appear if I choose “Fullwidth” in the Customizer.
If this is intended why it’s not the case when I choose “Sidebar Left, Content Right” in the Customizer? Because in this case what I choose from each page editing will matter.
October 23, 2014 at 6:58 am #130612Hi Jin,
Thank you for writing in!
This is the default behaviour of how Content Layout feature works in the Customizer. When the fullwidth is active, it will disable sidebar and make the content area fullwidth even the template is layout using different layout.
However, to make your search page fullwidth, simply copy the file wp-content/themes/x/framework/views/integrity/wp-index.php in your child theme’s folder /framework/views/integrity/, open it in a text editor and replace entire code with following:
<?php // ============================================================================= // VIEWS/INTEGRITY/WP-INDEX.PHP // ----------------------------------------------------------------------------- // Index page output for Integrity. // ============================================================================= ?> <?php get_header(); ?> <div class="x-container-fluid max width offset cf"> <?php if ( is_search() ): ?> <div class="x-main full" role="main"> <?php else: ?> <div class="<?php x_main_content_class(); ?>" role="main"> <?php endif ?> <?php x_get_view( 'global', '_index' ); ?> </div> <?php if ( !is_search() ): ?> <?php get_sidebar(); ?> <?php endif ?> </div> <?php get_footer(); ?>
Hope this helps. π
Thank you.
November 10, 2014 at 7:36 pm #142138Hi Team,
I can happily report back that the codes your provided in #130612 works. The search result is now full width without any unwanted posts alongside. Thanks a lot!
Best regards,
JinNovember 11, 2014 at 6:09 am #142398Glad we were able to help. π Have a nice day.
March 11, 2015 at 2:49 pm #225323I would appreciate an easier way to adapt the search results page like you did with the personalized error 404 page.
Is there any hope?
Cheers
ChrisMarch 11, 2015 at 5:08 pm #225411Hi Chris,
Thanks for writing in! Are you referring to the Custom 404 extension or a thread in the forum? Would you mind providing a link so we can check what you mean.
Regarding modifying the search results page, unfortunately, the above is currently the way to go about it. We don’t have any easier approach at this time. I will submit a feature request but cannot promise it will be implemented. Thanks for understanding.
Provide us with a link to the personalized 404 you mentioned and we’ll see if we can do something similar for the search page. Thanks!
March 12, 2015 at 1:48 am #225687Thank you for your reply.
In #225323 I was referring to the Custom 404 extension.
It would be great to modify the search results page in a different and easier manner like a.e.
– integrating the search results in a column created with visual composer
– change font size of the search results
– change the distance between search results
– highlight the search-keywords in the results
– maybe integrate a keyword cloud with the most searched words and
– integrate the “<h5 class=”search-title”><span><?php echo $wp_query->found_posts; ?> <?php _e( ‘search result(s) found for’, ‘locale’ ); ?></span></h5>” feature.This would be really a great extension.
Have a good day
ChrisMarch 12, 2015 at 4:53 am #225790Hi Chris,
We certainly appreciate the feedback! This is something we can add to our list of feature requests. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive. Thanks!
April 20, 2015 at 6:35 pm #254331Hi guys,
I wanted to tag along on this topic and ask:
How do I modify the texts on the search results page?
This thread has been very informative with regard to completely customizing the template. But I just want to change the text on the search results page to match the tone of my website. Is there an easy way to do that?
April 20, 2015 at 10:03 pm #254465Hey Meng,
Can you give us details by what you mean by “tone of my website”?
Thanks.
April 21, 2015 at 6:39 am #254738The narrative tone, I mean- there are different varieties right? For example:
404 – Page Not Found.
404. Ooops, we couldn’t find the page you were looking for!
That’s a 404! Sorry, please try again!
They’re all variations on the same message, but the tone should match the general tone of any website. The same applies for the Search Result pages. In X, they come default with a lot of text.
”
— Search Results —
Below you’ll see everything we could locate for your search of βtestβ*Nothing to Show Right Now*
It appears whatever you were looking for is no longer here or perhaps wasn’t here to begin with. You might want to try starting over from the homepage to see if you can find what you’re after from there.
”Is there an easy way to change these texts? It’s a bit too convoluted for the tone of the website I’m building. Thanks!
April 21, 2015 at 6:49 am #254753April 21, 2015 at 7:17 am #254771Where are the files, how do I find them, how to I make sure they’re not overwritten with every X update?
April 21, 2015 at 7:22 am #254779Hi there,
Files are located under x/framework/lang.
Please copy those files and translate .po file then compile it to .mo file as instruction, next to prevent overwriting place them inside child theme/framework/lang.Now add the following code in functions.php file inside child theme :
add_action( 'after_setup_theme', 'my_child_theme_setup' ); function my_child_theme_setup() { load_child_theme_textdomain( '__x__', get_stylesheet_directory() . '/framework/lang' ); }
Hope it helps.
-
AuthorPosts