12 column grid layout

Depending upon the css framework you can use grids, menus, lists to create your layout. You should not use grids for all of your elements. Example For the top logo-menu, you should use a row then inside the row 4col for logo and 8col for the menu. And then for creating the menu you will … Read more

How can I add category variable inside posts?

You can use get_the_category_list(), which returns a list of categories assigned to the post (each category in the list links to the category archive): printf( ‘<span class=”posted-on”>last updated on %1$s</span><span class=”byline”> <i class=”fa fa-user”></i> %2$s</span> in %3$s’, sprintf( ‘<a href=”https://wordpress.stackexchange.com/questions/338246/%1$s” rel=”bookmark”>%2$s</a>’, esc_url( get_permalink() ), $time_string ), sprintf( ‘<span class=”author vcard”><a class=”url fn n” href=”https://wordpress.stackexchange.com/questions/338246/%1$s”>%2$s</a></span>’, esc_url( … Read more

How can I delete the word `Category:` from page titles? [duplicate]

For achieve this title you need to extend get_the_archive_title . here is how or check the official doc function wpse64458_get_the_archive_title($title){ if ( is_category() ) { $title = single_cat_title( ”, false ); } elseif ( is_tag() ) { $title = single_tag_title( ”, false ); } return $title; } add_filter( ‘get_the_archive_title’, ‘wpse64458_get_the_archive_title’);

Display product thumbnail in Woocommerce email notifications

You’d better use woocommerce_email_order_items_args filter. It can be done this way: function add_product_thumbnail_to_wc_emails( $args ) { $args[‘show_image’] = true; $args[‘image_size’] = array( 100, 100 ); return $args; } add_filter( ‘woocommerce_email_order_items_args’, ‘add_product_thumbnail_to_wc_emails’ ); The code has to be placed to functions.php

How do I use a plugin to swap out the template file for a custom post type?

After trying a whole bunch of filter possibilities, I found one that worked. add_filter( ‘single_template’, array($this,’page_template’) ); Which got my function to be called. However, I also needed to make some more changes (not least of which taking out the die line). This was, finally, what worked: public function page_template( $page_template ) { global $post; … Read more

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