• 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

Reposition title Genesis Testimonial Plugin

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 › Design Tips and Tricks › Reposition title Genesis Testimonial Plugin

This topic is: not resolved

Tagged: Genesis Testimonial Plugin

  • This topic has 2 replies, 2 voices, and was last updated 4 years, 11 months ago by vissersj.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 18, 2017 at 7:58 am #209257
    vissersj
    Participant

    Please see the last widget area of the homepage of website http://slimkoopwinkels.nl/ . I try to reposition the title below the image (7) and manage to do so with the code snippet below in the theme functions.php, but I am unable to remove the title below the text (10) so it's double at the moment. What is the issue here?

    // Remove and add title before content Genesis Testimonial Slider plugin
    add_action( 'genesis_after_content_sidebar_wrap', 'remove_gts_title', 15 );
    function remove_gts_title() {
    
    remove_action( 'gts', 'gts_title', 10 );
    }
    add_action( 'gts', 'gts_title', 7 );
    http://slimkoopwinkels.nl
    July 18, 2017 at 8:15 am #209259
    Victor Font
    Moderator

    The Genesis Testimonial Slider plugin doesn't use the genesis_after_content_sidebar_wrap action for anything. There is no reference to this action in the plugin's source code.

    Second, you are assigning the add_action for genesis_after_content_sidebar_wrap a priority of 15 and you are trying to remove an action that already executed at priority 10. This will never work.

    All you should need in functions.php is:

    remove_action( 'gts', 'gts_title', 10 );
    add_action( 'gts', 'gts_title', 7 );

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    July 18, 2017 at 8:29 am #209262
    vissersj
    Participant

    Hi Victor,

    Hi Victor,

    Thank you for your reply. Unfortunately a simple remove action won't work, because it's executed before the plugin code is loaded. But you pointed out that the function is executed to late and the action was wrong. So I have changed the code snippet and this works now. Thanks again for your help!

    // Remove and add title before content Genesis Testimonial Slider plugin
    add_action( 'gts', 'remove_gts_title', 8 );
    function remove_gts_title() {
    	
    	remove_action( 'gts', 'gts_title', 10 );
    }
    add_action( 'gts', 'gts_title', 7 );
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 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