Changer numbers of columns in woocommerce shop
Use this in functions.php file. It is better to create site specific plugins. add_filter( ‘storefront_loop_columns’, ‘sf_columns_per_row’ ); function sf_columns_per_row() { return 4; }
Use this in functions.php file. It is better to create site specific plugins. add_filter( ‘storefront_loop_columns’, ‘sf_columns_per_row’ ); function sf_columns_per_row() { return 4; }
If you have a blog with different articles on your start page you have to change the “content.php” in your theme folder. On line 27 (if the file is not changed) you should change the function “the_excerpt()” to “the_content()” which then fetches the complete post until a manually set “read more” in the respective post. … Read more
Please use valid format for this Taxonomy Parameters Example: $args = array( ‘tax_query’ => array( array( ‘taxonomy’ => ‘topics’, ‘field’ => ‘slug’, ‘terms’ => ‘dealoftheweek’, ), ), ‘post_type’ => ‘dealmaker_pt’, ‘posts_per_page’ => 50, ‘offset’ => 1 ); $query = new WP_Query( $args );
It looks like the example link you provided uses O’Reilly’s open source project Thebe: https://github.com/oreillymedia/thebe The readme in the repo provides some instructions to get it set up. Hope that helps!
your current activate theme style.css in put this css .main-navigation ul li a { font-size: 16px !important; }
Do you mean the space between the paragraphs? If so, the reason why there is no space is that they are divs, not paragraphs. The code for each is <div id=”long id number unique for this paragraph and probably generated by the theme”>. While paragraphs have set spaces defined in the theme, divs do not. … Read more
Finally, the solution has been, as birgire pointed out, creating a custom feed and only allowing access to that URL: // Create new feed add_action(‘init’, ‘customRSS’); function customRSS(){ add_feed(‘supersecretfeed’, ‘customRSSFunc’); } function customRSSFunc(){ get_template_part(‘rss’, ‘supersecretfeed’); } Then, as the site is private, I had to allow public access to that specific URL, adding the is_feed … Read more
You have to pass the search query too. To get the search query, you can use the get_search_query() function, and pass it to the query’s s parameter: $search_string = get_search_query(); $args = array( ‘s’ => $search_string, ‘posts_per_page’ => 12, ‘order’ => ‘DESC’, );
You need to use CSS selector .hentry instead of article. Read more about CSS specificity.
No, the parent themes functions.php is always loaded, and require_once is not a WordPress API but a part of the PHP language itself The only way to change it would be to modify the file