Homie Pet Shop
Forum Replies Created
-
Forum: Plugins
In reply to: [Cache Enabler] Cache expiration timeIs there any wp cron function/code to do the same thing?
- This reply was modified 7 years, 6 months ago by Homie Pet Shop.
Forum: Plugins
In reply to: [Cache Enabler] Clear cache automaticallyI have same problems, why there is no “real” options to auto delete the cache?
Forum: Themes and Templates
In reply to: [Storefront] 2 columns on mobile !@logologics thanks for the code, it works very well…
However, I’d like to change the products in 2 columns except the categories (in the front page) only, I want the category products are still in 1 column while the others are in 2 columns. Any suggestion?
Thanks before..
That’s not the job of this plugin, it’s not a good idea to put any useless function. Put it in extension is a good option
Forum: Themes and Templates
In reply to: [Storefront] Year Footer is 2013@addweb-solution-pvt-ltd thanks bro, it works!
Actually the year is 2017 if I add a blog post (at least 1), but when I delete all post, the year becomes 2013.
Your solution works like a charm, either without blog post or with blog post
Thanks
- This reply was modified 7 years, 6 months ago by Homie Pet Shop.
Forum: Themes and Templates
In reply to: [Storefront] Footer HeightHi there, you should add custom css plugin and then add this code in the css in Appereance -> Customize -> Additional CSS
/* footer space */ .site-footer {padding:10px 0} .site-info {padding:10px 0} /* widget footer */ .footer-widgets {padding-top:5px} /* reduce widget title padding */ .widget .widget-title, .widget .widgettitle {padding: 0 0 10px;}
You can see my shop as example here https://homiepetshop.com
Feel free to modify it as your needs
Add this to your
functions.php
/* Force index search pages yoast */ add_filter( 'wpseo_robots', 'yoast_index_search', 10, 1 ); function yoast_index_search($str) { if (is_search()){ return 'index,follow'; } }
For some advanced code, which maybe uses other direktori than
'/search/'
for its search pages, then you should remove the canonical also/* Disable yoast canonical for 'search' page */ function remove_canonical() { if (is_search()) { add_filter( 'wpseo_canonical', '__return_false', 10, 1 ); } } add_action('wp', 'remove_canonical');
For the description in search pages, you can use the filter also, here is the code you should put in your
functions.php
/* description for search page */ function my_desc_search() { if (is_search()) { $tulis = ucwords(strtolower((string)get_search_query())).' | '.get_bloginfo( 'name' ).' | '.get_bloginfo( 'description' ); return $tulis; } } function change_desc_search() { if (is_search()) { add_filter('wpseo_metadesc','my_desc_search', 10, 1); } } add_action('wp', 'change_desc_search');
Feel free to modify it as your needs