Two topics
-
1. The post and page have something like
body:not(single-post):not(.page). How about error404 page? I was styling the blog and archives pages and it is affecting error404 page, making me write custom CSS for.error404to correct it.
2. How do I assign this as widget title to a shortcode hooked after the right sidebar content?<div class="widget-title">Widget Title</div>Here is the functionadd_action( 'generate_after_right_sidebar_content', 'gp_side_comments_box'); function gp_side_comments_box() { if (! is_single() || (! is_page) ) { echo do_shortcode( '[comments-widget]' ); } }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Two topics’ is closed to new replies.
