Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter dranreb

    (@dranreb)

    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'] = '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

    Thread Starter dranreb

    (@dranreb)

    For 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.

    Thread Starter dranreb

    (@dranreb)

    Thread Starter dranreb

    (@dranreb)

    Thank you very much.

    Great plugin.

    Thread Starter dranreb

    (@dranreb)

    I got same result… grade F. Thanks

    Thread Starter dranreb

    (@dranreb)

    Done voting Sir, Thanks

    Thread Starter dranreb

    (@dranreb)

    OK, thank you very much Sir…

    Very nice plugin…

    Thread Starter dranreb

    (@dranreb)

    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?

    Thread Starter dranreb

    (@dranreb)

    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

    Thread Starter dranreb

    (@dranreb)

    Hi,

    Good day…

    Any update on this one.

    Thanks

    Thread Starter dranreb

    (@dranreb)

    Here’s the link of the site.

    https://paramountinsurance.net/

    Thank you very much.

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