• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Dynamik + ACF + Minimum Pro Site Tagline

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Dynamik + ACF + Minimum Pro Site Tagline

This topic is: resolved

Tagged: dynamik acf

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 11 months ago by anotherusername.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 1, 2014 at 9:04 am #133329
    DTHkelly
    Member

    I combined 3 Tutorials and (finally) have:
    Dynamik Site Tagline Area: ACF Field (custom content for site tagline area) elseif Page/Post Title elseif Site Tagline

    Based on 3 tutorials:
    1. http://wpsites.net/web-design/add-minimum-pro-tagline-widget-to-any-theme/

    2. http://sridharkatakam.com/how-to-replace-site-tagline-on-pages-in-minimum-pro-with-custom-text-using-advanced-custom-fields/
    3. http://sridharkatakam.com/show-pagepost-title-site-tagline-left-area-minimum-pro/

    Add to Dynamik Custom Functions:

    //*Minimum Pro Site Tagline
    //* Add support for structural wraps
    add_theme_support( 'genesis-structural-wraps', array(
    	'header',
    	'nav',
    	'subnav',
    	'site-tagline',
    	'home-featured',
    	'site-inner',
    	'footer-widgets',
    	'footer'
    ) );
    
    //* Register Tagline Widget Area 
    genesis_register_sidebar( array(
    	'id'          => 'site-tagline-right',
    	'name'        => __( 'Site Tagline Right', 'minimum' ),
    	'description' => __( 'This is the site tagline right section.', 'minimum' ),
    ) );
    
    //* Remove Page Post Title
    	add_action( 'genesis_before_entry', 'sk_remove_titles_pages_posts' );
    function sk_remove_titles_pages_posts() {
    
    	if ( !get_field('custom_site_tagline_text') && is_singular( array('post', 'page') ) ) {
    
    		remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    
    	}
    }
    
    //* Add the site tagline section
    add_action( 'genesis_after_header', 'minimum_site_tagline' );
    function minimum_site_tagline() {
    if ( is_page() || is_single() && !is_post_type_archive('portfolio') && !is_singular( 'portfolio' )  ) {
    	printf( '<div %s>', genesis_attr( 'site-tagline' ) );
    	genesis_structural_wrap( 'site-tagline' ); 
    
    		printf( '<div %s>', genesis_attr( 'site-tagline-left' ) );
    $tagline = get_bloginfo( 'description' ); 
    
    	if ( !get_field('custom_site_tagline_text') ) :
    $tagline = genesis_do_post_title();
    	
    else : 
    	
    	if ( is_page() || is_singular() && get_field('custom_site_tagline_text') ) {
    $tagline = get_field( 'custom_site_tagline_text' );
    		}
    
    	
    printf( '<p %s>%s</p>', genesis_attr( 'site-description' ), esc_html( $tagline ) );
    	
    	endif;
    
    echo '</div>'; 
    	
    	
    		printf( '<div %s>', genesis_attr( 'site-tagline-right' ) );
    		genesis_widget_area( 'site-tagline-right' );
    		echo '</div>';
    
    	genesis_structural_wrap( 'site-tagline', 'close' );
    	echo '</div>';
    
    }
    	
    }

    CSS & media queries still need work!

    December 1, 2014 at 9:22 am #133335
    anotherusername
    Participant

    Thank You, Kelly!

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Dynamik + ACF + Minimum Pro Site Tagline’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble