• 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

Styling the Front Page 2 Widget: Digital 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 › Styling the Front Page 2 Widget: Digital Pro

This topic is: not resolved

Tagged: digital pro, front page 2 widget, widget

  • This topic has 9 replies, 2 voices, and was last updated 9 years, 4 months ago by tomrankin.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • October 8, 2016 at 5:35 am #194377
    tomrankin
    Member

    I'd like to display an opening blurb as shown and styled on a static page, but with the Front Page Content Section Display section underneath. I figured I could use the Front Page 2 Widget and style it appropriately, but I can't find the HTML. Looking in the front-page.php file I can find the function digital_front_page_widgets() section, but can't get any further.

    Where can I find the HTML for the Front Page 2 Widget?

    October 9, 2016 at 9:21 am #194396
    Christoph
    Member

    Hi,

    I´m not sure what you are asking about.

    The HTML wraps are defined right there in front-page.php

    	genesis_widget_area( 'front-page-2', array(
    		'before' => '<div id="front-page-2" class="front-page-2"><div class="wrap"><div class="flexible-widgets widget-area fadeup-effect' . digital_halves_widget_area_class( 'front-page-2' ) . '">',
    		'after'  => '</div></div></div>',
    	) ); 

    If you want to show text underneath the hero image and above front-page-2, you could add a new widget area in between.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    October 9, 2016 at 10:01 am #194401
    tomrankin
    Member

    Yes, I'm aware of that. However, when adding titles and text to that widget, I'm unable to style it because this is seemingly where the trail ends.

    Where is the HTML that's generated for the widget title and body text?

    October 9, 2016 at 11:44 am #194413
    Christoph
    Member

    It mostly depends on the widgets that you add to the widget area.
    Widget titles are styled with .widget-title.
    (If you need to be more specific you could try front-page-2 .widget-title, or if nothing else works, use the id of the widget (e.g. #text-4 .widget-title)
    You can change the markup of text in a text widget however you like.
    <div class="class-for-text-in-widget">Your text</div>


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    October 11, 2016 at 10:59 am #194521
    tomrankin
    Member

    Sorry for the late reply. Thanks for the advice. I don't seem to be able to make the title a H1 heading in the widget, though – which is why I went searching in the first place.

    October 11, 2016 at 11:12 am #194523
    tomrankin
    Member

    Not only that, but I don't seem to be able to edit the live site. My local server is fine, but those edits don't work live. Is there a reason for that (I've already purged the cache)?

    October 11, 2016 at 11:52 am #194526
    Christoph
    Member

    Hi,

    if you are using the accessibility features, that will break the semantic markup and is probably very confusing for screen reader users.

    You can try to filter the markup with genesis_register_sidebar_defaults
    Sridhar has some sample code: https://sridharkatakam.com/how-to-change-widget-titles-markup-in-genesis/

    As for changes not taking, sometimes the widget screen gets "stuck" and the page has to be reloaded before anything works.
    If you are using anything to minify the css, deactivate it.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    October 11, 2016 at 12:30 pm #194530
    tomrankin
    Member

    Yes, that's helpful – although I can't get that code to work, and in any case I want to change each widget to improve the structure. Currently there's no H1 tag on my home page. That site does have a jQuery method for changing a specific widget, but it's behind a paywall at a price way out of my range.

    Can I really not use minification when using Genesis? I do this via CloudFlare, and I'd like to continue doing that. That doesn't seem acceptable to me?

    October 13, 2016 at 9:17 am #194652
    Christoph
    Member

    Of course you can use minification.
    Just deactivate it while you are making changes.

    The H1 on the front page is usually the website title.

    I guess with jquery, you would target the id of the widget and the heading and use a combination of .unwrap().wrap("Your new heading styling and classes"); to change the markup.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    October 15, 2016 at 9:44 am #194793
    tomrankin
    Member

    I'm familiar with web page structure. 🙂 I've found another way to achieve what I want, so thanks for your help and clarification.

    I'm not a jQuery person, so I'll rope in a friend to help!

    Thanks again.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 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