• Resolved ChrisFord

    (@chrisford)


    Hi Michael,

    When I input the testimonials to my site, I created a category for them called, “Testimonial” and I’ve got categories displayed in my sidebar.

    The problem is when I click on the category link in the sidebar, it goes to:
    https://myfordassociates.com/category/testimonial/

    But, the testimonials are here:
    https://myfordassociates.com/testimonial/

    I’m not sure if I’m misunderstanding what the category is intended for on the testimonial entry screen, or if I’m just doing something wrong.

    Also, I saw the update but I’m nervous about installing it. If I update, will it change anything that I’ve already customized? I just spent a lot of time getting the “Read More” link to align properly and don’t want to go through that nightmare again!

    Thanks for your help.
    Chris

    https://www.ads-software.com/extend/plugins/testimonials-widget/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Michael Cannon

    (@comprock)

    Chris,

    Regarding updates, given you don’t do the customizations in the plugin itself, you’re fine.

    For the category listing, see FAQ 52.

    Thread Starter ChrisFord

    (@chrisford)

    OK Thanks Michael. My only concern now is I don’t know where to insert the code from the FAQ. I inserted some code for social sharing buttons the other night and wiped out my site. I had to reinstall the functions.php, so I’m a little gun shy about just pasting code in there.

    This is my functions.php below. Can you tell me where to insert the code from the FAQ?

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <?php
    /** Start the engine */
    require_once( get_template_directory() . '/lib/init.php' );
    
    /** Child theme (do not remove) */
    define( 'CHILD_THEME_NAME', 'Balance Theme' );
    define( 'CHILD_THEME_URL', 'https://www.studiopress.com/themes/balance' );
    
    /** Create additional color style options */
    add_theme_support( 'genesis-style-selector', array( 'balance-blue' => 'Blue', 'balance-green' => 'Green', 'balance-turquoise' => 'Turquoise', 'balance-pink' => 'Pink' ) );
    
    /** Add support for structural wraps */
    add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' ) );
    
    /** Add new image sizes */
    add_image_size( 'grid', 295, 100, TRUE );
    add_image_size( 'portfolio', 300, 200, TRUE );
    
    /** Add Viewport meta tag for mobile browsers */
    add_action( 'genesis_meta', 'balance_viewport_meta_tag' );
    function balance_viewport_meta_tag() {
    	echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
    }
    
    /** Unregister layout settings */
    genesis_unregister_layout( 'content-sidebar-sidebar' );
    genesis_unregister_layout( 'sidebar-content-sidebar' );
    genesis_unregister_layout( 'sidebar-sidebar-content' );
    
    /** Add support for custom background */
    add_custom_background();
    
    /** Add support for custom header */
    add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 135 ) );
    
    /** Reposition post info */
    remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    add_action( 'genesis_before_post_title', 'genesis_post_info' );
    
    /** Display author box on single posts */
    add_filter( 'get_the_author_genesis_author_box_single', '__return_true' );
    
    /** Customize the post info function */
    add_filter( 'genesis_post_info', 'post_info_filter' );
    function post_info_filter($post_info) {
    	if (!is_page()) {
    		$post_info = '[post_author_posts_link] [post_date]';
    		return $post_info;
    	}
    }
    
    /** Customize the entire footer */
    remove_action( 'genesis_footer', 'genesis_do_footer' );
    add_action( 'genesis_footer', 'custom_footer' );
    function custom_footer() {
        ?>
        <p>? Copyright 2004-2013 <a href="https://www.myfordassociates.com/">Ford & Associates</a></p>
        <?php
    }
    
    /** Customize the post meta function */
    add_filter( 'genesis_post_meta', 'post_meta_filter' );
    function post_meta_filter($post_meta) {
    	if (!is_page()) {
    		$post_meta = '[post_categories] [post_edit] [post_tags] [post_comments]';
    		return $post_meta;
    	}
    }
    
    /** Customize 'Read More' text */
    add_filter( 'get_the_content_more_link', 'balance_read_more_link' );
    add_filter( 'the_content_more_link', 'balance_read_more_link' );
    function balance_read_more_link() {
    	return '<a href="' . get_permalink() . '" rel="nofollow">' . __( 'Continue Reading' ) . '</a>';
    }
    
    /** Customize search button text */
    add_filter( 'genesis_search_button_text', 'custom_search_button_text' );
    function custom_search_button_text($text) {
    	return esc_attr('');
    }
    
    /** Reposition the breadcrumbs */
    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
    add_action( 'genesis_after_header', 'genesis_do_breadcrumbs' );
    
    /** Customize breadcrumbs display */
    add_filter( 'genesis_breadcrumb_args', 'balance_breadcrumb_args' );
    function balance_breadcrumb_args( $args ) {
    	$args['home'] = 'Home';
    	$args['sep'] = ' ';
    	$args['list_sep'] = ', '; // Genesis 1.5 and later
    	$args['prefix'] = '<div class="breadcrumb"><div class="wrap">';
    	$args['suffix'] = '</div></div>';
    	$args['labels']['prefix'] = '<span class="home">You are here:</span>';
    	return $args;
    }
    
    /** Add support for 3-column footer widgets */
    add_theme_support( 'genesis-footer-widgets', 3 );
    
    /** Register widget areas */
    genesis_register_sidebar( array(
    	'id'				=> 'home-featured-left',
    	'name'			=> __( 'Home Featured Left', 'balance' ),
    	'description'	=> __( 'This is the featured left area on the homepage.', 'balance' ),
    ) );
    
    genesis_register_sidebar( array(
    	'id'				=> 'home-featured-right',
    	'name'			=> __( 'Home Featured Right', 'balance' ),
    	'description'	=> __( 'This is the featured right area on the homepage.', 'balance' ),
    ) );
    
    genesis_register_sidebar( array(
    	'id'				=> 'portfolio',
    	'name'			=> __( 'Portfolio', 'balance' ),
    	'description'	=> __( 'This is the portfolio page.', 'balance' ),
    ) );
    Plugin Contributor Michael Cannon

    (@comprock)

    @chrisford, paste the code into the bottom of yourfunctions.php file like shown at https://pastebin.com/GR0CjBee.

    Thread Starter ChrisFord

    (@chrisford)

    Thanks!

    Thread Starter ChrisFord

    (@chrisford)

    And it worked! Thanks again!

    Plugin Contributor Michael Cannon

    (@comprock)

    @blogvkp Please open a new ticket

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Testimonial Category Link’ is closed to new replies.