• 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

Adding line break in php

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 › Adding line break in php

This topic is: resolved

Tagged: home, php, sidebars

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 1 month ago by BlakeN.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 5, 2013 at 9:16 am #9721
    BlakeN
    Participant

    http://www.lawrencevillewindowtinting.com/

    This is probably a simple fix but I cannot get it to work.

    I added another sidebar section to minimal theme and I cannot get a space between the two sections.  Here is the segment that needs to be fixed:

    function minimum_home_featured() {

    echo '<div id="home-featured"><div class="wrap">';

    genesis_widget_area( 'home-custom-1', array(
    'before' => '<div class="home-custom-1 widget-area">',
    ) );
    I NEED A SPACE HERE
    genesis_widget_area( 'home-featured-1', array(
    'before' => '<div class="home-featured-1 widget-area">',
    ) );

    genesis_widget_area( 'home-featured-2', array(
    'before' => '<div class="home-featured-2 widget-area">',
    ) );

    genesis_widget_area( 'home-featured-3', array(
    'before' => '<div class="home-featured-3 widget-area">',
    ) );

    genesis_widget_area( 'home-featured-4', array(
    'before' => '<div class="home-featured-4 widget-area">',
    ) );

    echo '</div><!-- end .wrap --></div><!-- end #home-featured -->';

    }

    Any help is greatly appreciated!

     

    January 5, 2013 at 10:37 am #9735
    Chris Cree
    Participant

    Positioning elements on a page is usually a CSS issue, not a php issue. If you add this to your style sheet (style.css file) it should do what you want:

    .home-custom-1 {
    	margin-bottom: 20px;
    }

    Obviously you can change the pixel hight to whatever suits your needs.

    January 5, 2013 at 10:56 am #9742
    BlakeN
    Participant

    Thanks Chris.

     

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adding line break in php’ 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

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