• 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

Len

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 20 posts - 1 through 20 (of 81 total)
1 2 3 4 5 →
  • Author
    Posts
  • January 14, 2016 at 9:46 am in reply to: Calling Dashicons #176491
    Len
    Participant

    That's what I'm thinking. I'm still refining my skills and want to do things the right way. 🙂

    February 16, 2015 at 8:35 am in reply to: I can't paste ads, NOTHING is working. #141016
    Len
    Participant

    Haha! I asked because when I checked out your site I saw a couple of StudioPress ads.

    BTW, you have no idea how many times I overlooked something simple or obvious while troubleshooting. 🙂

    February 14, 2015 at 9:06 pm in reply to: I can't paste ads, NOTHING is working. #140885
    Len
    Participant

    Perhaps a dumb question but are you running any kind of adblocking browser plugins?

    January 19, 2015 at 8:45 pm in reply to: Create a Demo with Color Style Preview #138001
    Len
    Participant

    Hi April. This is the method I use for my theme demo site.

    http://www.carriedils.com/body-class-querystring/

    November 19, 2014 at 3:26 pm in reply to: Dear members of this distinguished forum, I need your help! #132205
    Len
    Participant

    Not a problem, I have everything here for you. I just wanted to first make sure this is what you want. 🙂

    We'll be editing 2 files:

    • Agency Pro's style.css file
    • Agency Pro's functions.php file

    First Step:
    Open Agency Pro's style.css file in a plain text editor and add the following ...

    /* Before Entry
    --------------------------------------------- */
    
    .before-entry {
    	background-color: #fff;
    	border-radius: 3px;
    	margin-bottom: 40px;
    	padding: 40px;
    	text-align: center;
    }
    
    .before-entry .widget {
    	margin-bottom: 40px;
    }
    
    .before-entry .widget:last-child,
    .before-entry p:last-child {
    	margin: 0;
    }
    
    .before-entry li {
    	list-style-type: none;
    }

    To keep things organized you could add that right before this section (which is already there) ...

    /* After Entry
    --------------------------------------------- */

    Second Step:
    We'll be making 2 edits to Agency Pro's functions.php file. Open that file in a plain text editor and add the following ...

    //* Add Before Entry widget area to front page
    add_action( 'genesis_before_loop', 'agency_before_entry'  ); 
    function agency_before_entry() {
    
    	if ( ! is_front_page() || get_query_var( 'paged' ) >= 2 )
    		return;
    
    	genesis_widget_area( 'before-entry', array(
    		'before' => '<div class="before-entry widget-area">',
    		'after'  => '</div>',
    	) );
    
    }

    The above will place the new widget area, which I called Before Entry, above the content area using the genesis_before_loop hook and it will appear on the front page only.

    It doesn't matter where in the functions.php file you put it. For the sake of organization and to keep things neat & tidy you could put it right above this bit ...

    //* Add support for after entry widget
    add_theme_support( 'genesis-after-entry-widget-area' );

    Next, scroll down towards the bottom where you will see this ...

    //* Register widget areas

    Somewhere beneath that add the following ...

    genesis_register_sidebar( array(
    	'id'		=> 'before-entry',
    	'name'		=> __( 'Before Entry', 'agency' ),
    	'description'	=> __( 'This is the Before Entry widget area.', 'agency' ),
    ) );
    November 19, 2014 at 1:38 am in reply to: Dear members of this distinguished forum, I need your help! #132087
    Len
    Participant

    Hi Fonte. This is what I did on the test site. http://dev.wpcanada.ca/

    It has a new widget area that appears above the content area and only on the front page. The styling matches the After Entry widget area which already comes with the theme. (You can style that any way you want) And I got rid of all the code I pointed you towards earlier.

    Is this what you are after?

    November 18, 2014 at 8:50 pm in reply to: Dear members of this distinguished forum, I need your help! #132062
    Len
    Participant

    I kind of had a feeling that is what you were after? 😉

    We can create a custom widget area & situate it above the content area. I have a couple of questions first.

    1. Agency Pro comes with a widgetized front-page.php file. Will you be using this template file at all to display it's custom widgets or will you be sticking with the regular blog format?
    2. After we create a new widget area (which will sit above the content area) do you want this widget area to appear on all pages or just the front page?

    November 18, 2014 at 5:03 pm in reply to: Dear members of this distinguished forum, I need your help! #132050
    Len
    Participant

    If you set that post as sticky, WordPress will assign the class .sticky to it (which you can see if you view the source code) So, we can target that class in our CSS.

    You could do something like,

    .sticky .entry-meta,
    .sticky .entry-title {
    	display: none;
    }

    Perhaps I can suggest something else if I better understand what you are trying to do?

    Let me see if I have this right. You have set the post as a sticky post which will contain an optin box. So this post is not necessarily a post? The only reason you have set it as a sticky post is so that it will sit at the top of the page? What you are really looking for is a method that allows you to have a piece of content sit at the top of the content area? Is that right?

    November 18, 2014 at 12:21 am in reply to: Dear members of this distinguished forum, I need your help! #131957
    Len
    Participant

    You're very welcome. Glad to see you got it sorted out.

    Life is a never ending learning process. I learn something new every day simply by helping out here and reading other forum posts. 🙂

    November 17, 2014 at 11:37 pm in reply to: Dear members of this distinguished forum, I need your help! #131954
    Len
    Participant

    Hi Fonte. This has something to do with the way it is being copy/pasted. I'm certain of it. Unfortunately there is only so much I can do from here in the forum. Tell you what, drop me a line using the contact form at my site.

    November 17, 2014 at 8:40 pm in reply to: Dear members of this distinguished forum, I need your help! #131936
    Len
    Participant

    Have you added anything else or in any way modified the functions.php file?

    November 17, 2014 at 5:13 pm in reply to: Dear members of this distinguished forum, I need your help! #131914
    Len
    Participant

    It's difficult to read that without the proper formatting but it *looks right. On my test site and simply added it to the end of the functions.php file.

    November 17, 2014 at 2:44 pm in reply to: Dear members of this distinguished forum, I need your help! #131888
    Len
    Participant

    Hi Fonte.

    unexpected end of file in

    It seems like you're missing a closing "curly" bracket. Double check to make sure you copied/pasted the code from Sridhar's gist correctly. Also, make sure you're not copying directly from the embedded gist - use the View Raw link. You probably know that but I just want to rule it out.

    Here is a test site using Sridhar's mod. http://dev.wpcanada.ca/

    November 12, 2014 at 4:41 pm in reply to: Another Lifestyle Pro responsive header image question/issue #131349
    Len
    Participant

    Hi linlan. Try adding a couple of rules to the 1139px breakpoint.

    @ media only screen and (max-width: 1139px) {

    .header-image .site-title a {
    	background-position: center !important;
    	background-size: contain !important;
    }
    November 12, 2014 at 4:02 pm in reply to: Dear members of this distinguished forum, I need your help! #131348
    Len
    Participant

    Hello Fonte. See if this helps. It's kind of what you're looking for. I think. http://sridharkatakam.com/displaying-latest-post-full-followed-excerpts-genesis/

    November 12, 2014 at 1:09 pm in reply to: Post Pagination – breaking post into multiple pages- not working #131328
    Len
    Participant

    Indeed it is Eric. On that note you have no idea how many times I've missed a comma here, a semicolon there. 🙂

    November 10, 2014 at 11:27 pm in reply to: How to adjust landing page width in Agency Pro? #131155
    Len
    Participant

    Ooo, a new play thing. I don't have it but I'm off to go get it now. 🙂

    November 10, 2014 at 11:19 pm in reply to: Sidebar Specific To Page #131152
    Len
    Participant

    Happens to me all the time. 🙂 Glad it's working.

    November 10, 2014 at 11:16 pm in reply to: How to adjust landing page width in Agency Pro? #131151
    Len
    Participant

    Haha! I just uploaded a screenshot to show you. It must have been a cache issue. Glad it's working. 🙂

    November 10, 2014 at 10:58 pm in reply to: How to adjust landing page width in Agency Pro? #131146
    Len
    Participant

    Hi Fonte. The landing page I'm seeing is fairly narrow, it looks like 700px wide. What are you seeing?

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 81 total)
1 2 3 4 5 →

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