Adding Text ABOVE Portfolio Items (Balance Theme)

Community Forums Forums Design Tips and Tricks Adding Text ABOVE Portfolio Items (Balance Theme)

This topic is: not resolved

Tagged: ,

This topic contains 4 replies, has 3 voices, and was last updated by  braddalton 8 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #46754

    mrsmin
    Participant

    HI there

    Can anyone give me some advice on how I can add a paragraph of text just before the list of portfolio items. If you take a look at the demo link: http://demo.studiopress.com/balance/templates/portfolio/

    I would like a paragraph of text to be between the heading “Portfolio Page” and where the porfolio items display.

    If I add info in the WordPress editor, it doesn’t get displayed on the page.

    Any suggestions?

     

    http://demo.studiopress.com/balance/templates/portfolio/
    #46761

    braddalton
    Participant
    Post count: 7473

    Change the hook to change the position of the text

    You could also use this code to make a widget for this text.

    Note: The code uses the old XHTML hooks.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #55506

    CVDJ
    Participant
    Post count: 1

    Hey Brad… I’m trying to do the same thing…. where exactly do I put this code??? thanks, Carolyn

    #55510

    braddalton
    Participant
    Post count: 7473

    No need anymore because Genesis 2.0 includes support for CPT archive title and description.

    Simply change the CPT so its like this:

    /** Create portfolio custom post type */
    add_action( 'init', 'custom_portfolio_post_type' );
    function custom_portfolio_post_type() {
    	register_post_type( 'portfolio',
    		array(
    			'labels' => array(
    				'name' => __( 'Portfolio', 'custom' ),
    				'singular_name' => __( 'Portfolio', 'custom' ),
    			),
    			'exclude_from_search' => true,
    			'has_archive' => true,
    			'hierarchical' => true,
    			'menu_icon' => get_stylesheet_directory_uri() . '/images/icons/portfolio.png',
    			'public' => true,
    			'show_ui' => true, 
                            'show_in_menu' => true,
    			'rewrite' => array( 'slug' => 'portfolio' ),
    			'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes', 'genesis-seo', 'genesis-cpt-archives-settings' ),
    		)
    	);
    }
    

    You can see that these have been added:

    genesis-cpt-archives-settings
    'show_ui' => true, 
    'show_in_menu' => true,
    

    Also see this post http://www.rfmeier.net/custom-post-type-archive-settings-with-genesis-2-0/


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #55515

    braddalton
    Participant
    Post count: 7473

    Sorry thats incorrect as the Balance theme doesn’t include a CPT so please add this code at the end of your child themes functions.php file. http://www.studiopress.com/forums/topic/adding-text-above-portfolio-items-balance-theme/#post-46761

    The changes relate to themes using a CPT.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.