• 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

Creating a Call To Action in Posts in Executive Pro

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 › Creating a Call To Action in Posts in Executive Pro

This topic is: not resolved

Tagged: call to action, executive pro

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 2 months ago by marcomancosu.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 26, 2014 at 11:08 am #132882
    marcomancosu
    Member

    Hi,

    I'm trying to set up a call to action widget to use in the posts in the Executive Pro theme. I would like to get the same widget as the one on the homepage.
    I followed the tutorial here: http://wpsites.net/web-design/add-call-to-action-widget-in-any-studiopress-theme/
    and added the right code to the functions.php and to the style.css files.

    Then, I added the below code to the post through the Visual editor in WordPress:
    <div class="call-to-action widget-area">
    <h4 class="call-to-action widgettitle">Widget title</h4>
    <div class="three-fourths first">Here's a great place to write something specific that you want your visitors to read.</div>
    <div class="one-fourth">Contact Us Today</div>
    </div></section>

    but the title gets too much space.

    If I remove the line:
    <h4 class="call-to-action widgettitle">Widget title</h4>
    the widget looks better, but the title is missing.

    What am I doing wrong? I'm a completely newbie so please help.
    Thanks

    http://mytestingwebsite.org/classic-italy-tour-by-train/
    November 26, 2014 at 3:15 pm #132902
    anotherusername
    Participant

    "What am I doing wrong? I’m a completely newbie so please help."

    Well... what you are doing wrong is that you are a complete newbie trying to develop a site in Genesis.

    Don't get me wrong: Genesis is great... if you know what you are doing.

    Ok, I will stop being snarky and actually try to offer some helpful advice.

    You need to change the css that affects the headline (the h4 tag) in that widget box.

    Specifically, try changing the padding around this line:

    .call-to-action {
        background-color: #222;
        color: #DDD;
        float: left;
        padding: 6rem;
        width: 100%;

    to something like this:

    .call-to-action {
        background-color: #222;
        color: #DDD;
        float: left;
        padding: 3rem;
        width: 100%;

    Specifically, look to change:

    padding: 6rem;

    to something smaller, such as:

    padding: 3rem;

    Hope that helps.

    November 27, 2014 at 2:03 am #132954
    marcomancosu
    Member

    Thanks anotherusername! That worked, and I learned a lot. I appreciate your help,
    Marco

  • 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

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