Storefront theme : Add Categoy to recent products section

I found it , the question is resolved : Solution : add_filter( ‘storefront_recent_products_args’,’my_custom_storefront_category_args’ ); function my_custom_storefront_category_args( $args ){ $args = array( ‘limit’ => 6, ‘columns’ => 3, ‘orderby’ => ‘date’, ‘order’ => ‘desc’, ‘category’ => ‘your-cat-slug’, ‘cat_operator’ => ‘AND’ ); return $args; }

Multiple Child Themes

No, this is not possible. You can only have one theme activated at any given time. However, you can add as many page templates to a single theme as you want. They just need to be in separate files. For example, my theme contains: page.php ← Standard page template page-archive.php ← Page template for special … Read more

Child Theme Variables

You can make your function filterable: function brickAlign() { $a = “true”; return apply_filters( ‘brick_align’, $a ); } Then, in your child Theme, add a filter callback: function child_theme_filter_brick_align( $a ) { return ‘false’; } add_filter( ‘brick_align’, ‘child_theme_filter_brick_align’ ); Alternately, you could pass a parameter to your function: function brickAlign( $value=”true” ) { // Note: … Read more

What are the best practices for maintaining and deploying several parent themes?

While I agree with Justin Tadlock on a lot of things, I strongly disagree with him on this. The reason parent/child themes exist is that there’s a lot of common functionality used across websites. Instead of re-inventing the wheel every time, it’s better to build from a solid base that has been tested by hundreds … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)