Forum Replies Created
-
AuthorPosts
-
LenParticipant
That's what I'm thinking. I'm still refining my skills and want to do things the right way. 🙂
LenParticipantHaha! 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. 🙂
LenParticipantPerhaps a dumb question but are you running any kind of adblocking browser plugins?
LenParticipantHi April. This is the method I use for my theme demo site.
Show Off Colors in Your Theme Demo by Using the Body Class and a Querystring
November 19, 2014 at 3:26 pm in reply to: Dear members of this distinguished forum, I need your help! #132205LenParticipantNot 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! #132087LenParticipantHi 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! #132062LenParticipantI 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! #132050LenParticipantIf 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! #131957LenParticipantYou'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! #131954LenParticipantHi 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! #131936LenParticipantHave 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! #131914LenParticipantIt'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! #131888LenParticipantHi 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 #131349LenParticipantHi 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! #131348LenParticipantHello 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 #131328LenParticipantIndeed it is Eric. On that note you have no idea how many times I've missed a comma here, a semicolon there. 🙂
LenParticipantOoo, a new play thing. I don't have it but I'm off to go get it now. 🙂
LenParticipantHappens to me all the time. 🙂 Glad it's working.
LenParticipantHaha! I just uploaded a screenshot to show you. It must have been a cache issue. Glad it's working. 🙂
LenParticipantHi Fonte. The landing page I'm seeing is fairly narrow, it looks like 700px wide. What are you seeing?
-
AuthorPosts