Len

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 80 total)
  • Author
    Posts
  • 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. :)


    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?


    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/


    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' ),
    ) );

    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?


    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?


    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?


    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. :)


    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.


    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?


    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.


    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/


    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;
    }

    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/



    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. :)


Viewing 15 posts - 1 through 15 (of 80 total)