dranreb
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Canonical Tag for Archive and category pagesI’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 SEOHere’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"> </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'] = 'https://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'] = 'https://schema.org/Blog'; } else { $attributes['itemtype'] = 'https://schema.org/WebPage'; } return $attributes; }
Thanks
- This reply was modified 7 years, 12 months ago by Steven Stern (sterndata).
- This reply was modified 7 years, 12 months ago by Steven Stern (sterndata). Reason: put code in backticks
Forum: Plugins
In reply to: [Yoast SEO] Canonical Tag for Archive and category pagesFor example I have a category “test” and I put the https://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
In reply to: [Yoast SEO] Canonical Tag for Archive and category pagesPlease check the attach images. Thanks
https://www.screencast.com/t/uOfOPj0lHe
https://www.screencast.com/t/bjbCConuv11Thank you very much.
Great plugin.
Forum: Plugins
In reply to: [W3 Total Cache] Leverage browser caching of static assetsI got same result… grade F. Thanks
Forum: Plugins
In reply to: [WP Fastest Cache] Eliminate render-blocking JavaScript and CSS for MobileDone voting Sir, Thanks
Forum: Plugins
In reply to: [WP Fastest Cache] Eliminate render-blocking JavaScript and CSS for MobileOK, thank you very much Sir…
Very nice plugin…
Forum: Plugins
In reply to: [WP Fastest Cache] Eliminate render-blocking JavaScript and CSS for MobileI 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
In reply to: [W3 Total Cache] I can't enable the Minify settingsHi 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
In reply to: [WPFront Notification Bar] Overwrite my theme sticky headerHi,
Good day…
Any update on this one.
Thanks
Forum: Plugins
In reply to: [WPFront Notification Bar] Overwrite my theme sticky header