Title: dranreb's Replies | WordPress.org

---

# dranreb

  [  ](https://wordpress.org/support/users/dranreb/)

 *   [Profile](https://wordpress.org/support/users/dranreb/)
 *   [Topics Started](https://wordpress.org/support/users/dranreb/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dranreb/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dranreb/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dranreb/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dranreb/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dranreb/favorites/)

 Search replies:

## Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Canonical Tag for Archive and category pages](https://wordpress.org/support/topic/canonical-tag-for-archive-and-category-pages/)
 *  Thread Starter [dranreb](https://wordpress.org/support/users/dranreb/)
 * (@dranreb)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/canonical-tag-for-archive-and-category-pages/#post-8506076)
 * I’m using Dynamic Child theme for Genesis Theme.
 * Here’s list of plugins
 * Broken Link Checker
    Contact Form 7 DashNex Plugin Genesis Simple Edits Genesis
   Simple Sidebars Google XML Sitemaps HTML Page Sitemap iThemes Security Limit 
   Login Attempts Official StatCounter Plugin Page Builder by SiteOrigin Project
   Supremacy Plugin Quick Page/Post Redirect Plugin SERPed.net Simple video sitemap
   generator SiteOrigin Widgets Bundle WP Image App WP Super Cache Yoast SEO
 * Here’s custom code
 *     ```
       add_filter( 'genesis_seo_title', 'dc_seo_title', 10, 1 );
       function dc_seo_title( $title ) {
       	$title = '<p itemprop="headline" class="site-title"><a title="' . get_bloginfo('name') . '" href="' . get_bloginfo('url') . '">' . get_bloginfo('name') . '</a></p>';
       	return $title;
       }
   
       add_filter( 'genesis_seo_description', 'dc_seo_description' );
       function dc_seo_description($description) {
       	$description = '<p class="site-description" itemprop="description">' . get_bloginfo('description') . '</p>';
       	return $description;
       }
   
       add_action( 'genesis_entry_header', 'dc_new_content_sidebar_wrap', 15 );
       function dc_new_content_sidebar_wrap() {
       	echo '<div class="new-content-sidebar-wrap">';
       }
   
       add_action( 'genesis_entry_header', 'dc_new_content_wrap', 15);
       function dc_new_content_wrap () {
       	if ( is_single() ) {
       		echo '<div class="new-content-wrap" itemprop="articleBody">';		
       	} else {
       		echo '<div class="new-content-wrap" itemprop="mainContentOfPage">';		
       	}
       }
   
       add_action( 'genesis_entry_content', 'page_spacer', 5 );
       function page_spacer () {
       	if ( is_page() ) {
       		echo '<p class="spacer">&nbsp;</p>';
       	}
       }
   
       remove_action( 'genesis_entry_header', 'genesis_post_info', 12);
       add_action( 'genesis_entry_content', 'genesis_post_info', 5 );
   
       remove_action( 'genesis_after_entry', 'genesis_get_comments_template' );
       add_action( 'genesis_entry_footer', 'genesis_get_comments_template', 15 );
   
       add_action( 'genesis_entry_footer', 'dc_new_content_wrap_close', 16 );
       function dc_new_content_wrap_close() {
       	echo '</div><!-- close new wrap -->';
       }
   
       remove_action( 'genesis_after_content', 'genesis_get_sidebar' );
       add_action( 'genesis_entry_footer', 'genesis_get_sidebar', 17 );
   
       add_action( 'genesis_entry_footer', 'dc_new_content_sidebar_wrap_close', 18 );
       function dc_new_content_sidebar_wrap_close() {
       	echo '</div><!-- close new sidebar wrap -->';
       }
   
       /* Remove comment form allowed tags */
       add_filter( 'comment_form_defaults', 'dc_remove_comment_allowed_tags' );
       function dc_remove_comment_allowed_tags( $defaults ) {
       	$defaults['comment_notes_after'] = '';
       	return $defaults;
       }
       /* Remove comments from attachments */
       function filter_media_comment_status( $open, $post_id ) {
       $post = get_post( $post_id );
       if( $post->post_type == 'attachment' ) {
       return false;
       }
       return $open;
       }
       add_filter( 'comments_open', 'filter_media_comment_status', 10 , 2 );
   
       /* multi purpose empty array for selectively deleting schema */
       function custom_schema_empty( $attributes ){
       $attributes['itemtype'] = '';
       $attributes['itemprop'] = '';
       $attributes['itemscope'] = '';
       return $attributes;
       }
       add_filter( 'genesis_attr_content', 'custom_schema_empty', 20 ); /* removes mainContentOfPage */
       add_filter( 'genesis_attr_entry-content', 'custom_schema_empty');
       /* Schema Changes */
       add_filter( 'genesis_attr_entry', 'custom_genesis_attr_entry' );
       function custom_genesis_attr_entry ($attributes) {
       	if ( is_single() ) {
       		$attributes['itemtype'] = 'http://schema.org/BlogPosting';		
       	} else {
       		$attributes['itemtype'] = '';
       		$attributes['itemprop'] = '';
       		$attributes['itemscope'] = '';
       	}
       	return $attributes;
       }
       add_filter( 'genesis_attr_body', 'custom_post_attr_body' );
       function custom_post_attr_body ($attributes) {
       	if ( is_single() ) {
       		$attributes['itemtype'] = 'http://schema.org/Blog';		
       	} else {
       		$attributes['itemtype'] = 'http://schema.org/WebPage';
       	}
       	return $attributes;
       }
       ```
   
 * Thanks
    -  This reply was modified 9 years, 5 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This reply was modified 9 years, 5 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: put code in backticks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Canonical Tag for Archive and category pages](https://wordpress.org/support/topic/canonical-tag-for-archive-and-category-pages/)
 *  Thread Starter [dranreb](https://wordpress.org/support/users/dranreb/)
 * (@dranreb)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/canonical-tag-for-archive-and-category-pages/#post-8505979)
 * For example I have a category “test” and I put the [http://site.com/category/test](http://site.com/category/test)
   in Yoast SEO Meta Box. But when I view the page source in the browser, the canonical
   tag was not showing.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Canonical Tag for Archive and category pages](https://wordpress.org/support/topic/canonical-tag-for-archive-and-category-pages/)
 *  Thread Starter [dranreb](https://wordpress.org/support/users/dranreb/)
 * (@dranreb)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/canonical-tag-for-archive-and-category-pages/#post-8505840)
 * Please check the attach images. Thanks
 * [http://www.screencast.com/t/uOfOPj0lHe](http://www.screencast.com/t/uOfOPj0lHe)
   
   [http://www.screencast.com/t/bjbCConuv11](http://www.screencast.com/t/bjbCConuv11)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Autoptimize] Eliminate render-blocking JavaScript and CSS in above-the-fold content](https://wordpress.org/support/topic/eliminate-render-blocking-javascript-and-css-in-above-the-fold-content-39/)
 *  Thread Starter [dranreb](https://wordpress.org/support/users/dranreb/)
 * (@dranreb)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/eliminate-render-blocking-javascript-and-css-in-above-the-fold-content-39/#post-8463704)
 * Thank you very much.
 * Great plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Leverage browser caching of static assets](https://wordpress.org/support/topic/leverage-browser-caching-of-static-assets-2/)
 *  Thread Starter [dranreb](https://wordpress.org/support/users/dranreb/)
 * (@dranreb)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/leverage-browser-caching-of-static-assets-2/#post-6765748)
 * I got same result… grade F. Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Fastest Cache - WordPress Cache Plugin] Eliminate render-blocking JavaScript and CSS for Mobile](https://wordpress.org/support/topic/eliminate-render-blocking-javascript-and-css-for-mobile/)
 *  Thread Starter [dranreb](https://wordpress.org/support/users/dranreb/)
 * (@dranreb)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/eliminate-render-blocking-javascript-and-css-for-mobile/#post-5813321)
 * Done voting Sir, Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Fastest Cache - WordPress Cache Plugin] Eliminate render-blocking JavaScript and CSS for Mobile](https://wordpress.org/support/topic/eliminate-render-blocking-javascript-and-css-for-mobile/)
 *  Thread Starter [dranreb](https://wordpress.org/support/users/dranreb/)
 * (@dranreb)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/eliminate-render-blocking-javascript-and-css-for-mobile/#post-5813316)
 * OK, thank you very much Sir…
 * Very nice plugin…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Fastest Cache - WordPress Cache Plugin] Eliminate render-blocking JavaScript and CSS for Mobile](https://wordpress.org/support/topic/eliminate-render-blocking-javascript-and-css-for-mobile/)
 *  Thread Starter [dranreb](https://wordpress.org/support/users/dranreb/)
 * (@dranreb)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/eliminate-render-blocking-javascript-and-css-for-mobile/#post-5813314)
 * I only use the free version of the plugin… But if I recommend the premium version
   and use it on my client site, it will minify both for mobile and desktop is that
   right?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] I can't enable the Minify settings](https://wordpress.org/support/topic/i-cant-enable-the-minify-settings/)
 *  Thread Starter [dranreb](https://wordpress.org/support/users/dranreb/)
 * (@dranreb)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/i-cant-enable-the-minify-settings/#post-5766355)
 * Hi I hope you can help me with this one, I can’t really get the minify option
   enable.
 * Any suggestion how can I make this one work.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPFront Notification Bar] Overwrite my theme sticky header](https://wordpress.org/support/topic/overwrite-my-theme-sticky-header/)
 *  Thread Starter [dranreb](https://wordpress.org/support/users/dranreb/)
 * (@dranreb)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/overwrite-my-theme-sticky-header/#post-5670622)
 * Hi,
 * Good day…
 * Any update on this one.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPFront Notification Bar] Overwrite my theme sticky header](https://wordpress.org/support/topic/overwrite-my-theme-sticky-header/)
 *  Thread Starter [dranreb](https://wordpress.org/support/users/dranreb/)
 * (@dranreb)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/overwrite-my-theme-sticky-header/#post-5670541)
 * Here’s the link of the site.
 * [http://paramountinsurance.net/](http://paramountinsurance.net/)
 * Thank you very much.

Viewing 11 replies - 1 through 11 (of 11 total)