Forum Replies Created
-
AuthorPosts
-
Dorian SpeedMember
I have no idea why, but it's showing on my screen as "child promotion_widget" and it should be "child_promotion_widget".
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberWith the caveat that this suggestion may prove completely useless:
I think what I would do is just create a page template with a widgeted area after the content - so, create a file named page_promotion.php, with this as its content:
<?php /** * This file adds the Promotion template to the Child Theme. * */ /* Template Name: Promotion */ /** Add the promotion widget area */ add_action( 'genesis_loop', 'child_promotion_widget' ); function child_promotion_widget() { dynamic_sidebar( 'promotion' ); } genesis();
Register the sidebar 'promotion' in functions.php and use a Genesis Featured Widget Amplified to show the latest post in a category called "promotions" or something.
I believe you could customize individual pages by using multiple instances of the Genesis FWA and excluding/including them.
Like I said...possibly non-helpful.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI think it's just done via the main WordPress settings. Settings > Reading > Blog pages show at most...
That's different from the Genesis Theme Settings, which apply only to pages with the "blog" template.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI think I would go with using the built-in Category Archive rather than a specific page template, although there are several ways to do what you're doing.
Go into Posts > Categories and click "Edit" under whatever category it is you'd like to customize. You'll be taken to a page with Category Archive Settings, including a headline for the Archive and a field for intro text. I believe that field will take HTML so you could include images, etc., just using the HTML code. I don't know how familiar you are with HTML but if you're not sure how to do that, the easiest thing would be to go compose a post that looks the way you want that introduction to go (including any images you want to display) and then switch from "Visual" to "Text" in the post editor. Highlight all of the HTML, copy it, and go paste it into that Category Archive intro text field.
You can then style it further with CSS if you'd like. You can decide if you want to show the full content of each post by going into your Genesis theme settings for "content archive."
If you wanted to get more complicated, like "on posts in the 'Cat' category, show the full content, but for posts in the 'Dog' category, show an excerpt," then that would require the use of page templates.
To add it to your menu, just choose the "Dog" category and it will automatically show the archive description, I believe.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberThis worked for me just now on another site:
remove_action( 'gfwa_after_post_content', 'gfwa_do_post_meta', 10, 1 );
add_action( 'gfwa_before_post_content', 'gfwa_do_post_meta', 1, 1 );(The only change from what I pasted earlier was that I said "before_post_content" instead of "before_post_title".)
If that doesn't work, it might be a conflict with another plugin, maybe?
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberYou could try this:
remove_action( 'gfwa_after_post_content', 'gfwa_do_post_meta', 10, 1 );
add_action( 'gfwa_before_post_title', 'gfwa_do_post_meta', 1, 1 );
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI think what I'd do is add a widgeted area after the header or before the content-sidebar wrap and then put the slider into that widget. Use something like this, added to your functions.php, to place the widgeted area there:
add_action('genesis_before_content_sidebar_wrap', 'child_include_lower_ad');
function child_include_lower_ad() {
echo '<div id="lower-ad">';
dynamic_sidebar( 'lower-ad' );
echo '</div>';
}You could also try genesis_after_header instead of genesis_before_content_sidebar_wrap.
Then you would need to add to the style.css file to tell it how you want that widgeted area to look - something like this:
#lower-ad {
width: 960px;
background: #fff;
margin: 0;
padding: 0;
height: 50px;
text-align: center;
}Or however you want it to appear. Then drag the slider into that widget.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberWe built something similar for a Chamber of Commerce site using Custom Post Types. Brandon Kraft did the heavy lifting. because we wanted people to have varying degrees of "fancyness" for their listings based on how much they were willing to pay - this particular directory has a free, basic, and premium listing. We also needed to ensure that only Chamber members were able to post listings - sounds like you might not need that.
There's not a plugin out there that would do what we wanted to, but we used Premise to restrict the amount of listing fancyness (technical term, ha ha) and a CPT for the directory entries. You need to consider whether or not you want the service provider to have to have a listing approved by an administrator before it's initially posted and again whenever it's edited. We ended up using a combination of plugins and custom code.
It does look like this plugin offers a lot of features - I haven't used it before, though:
http://businessdirectoryplugin.com/features/
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI'm probably missing something here, but can't you do that by showing either the Post Info or the Post Meta and customizing the output with shortcodes? [post_categories] to show the categories?
Oh, wait - you're asking how to show it above the title instead of after the title? Nick posted something to the codex about that. You could try his suggestion - add this to your functions.php:
remove_action( 'gfwa_before_post_content', 'gfwa_do_byline', 10, 1 );
add_action( 'gfwa_before_post_content', 'gfwa_do_byline', 8, 1 );
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI think what I would do is choose a content-sidebar layout, then register additional sidebar areas UNDER the sidebar.
When I did this before, I added the following to functions.php:
// Add two sidebars underneath the primary sidebar
add_action('genesis_after_sidebar_widget_area', 'lifestyle_include_bottom_sidebars');
function lifestyle_include_bottom_sidebars() {
require(CHILD_DIR.'/sidebar-bottom.php');
}
Then I added a file titled sidebar-bottom.php to the theme files, with this as its content:<div id="sidebar-bottom">
<div id="sidebar-bottom-left">
</div><!-- end #sidebar-bottom-left --><div id="sidebar-bottom-right">
</div><!-- end #sidebar-bottom-right --></div><!-- end #sidebar-bottom -->
I also registered the sidebar areas in functions.php but I think that duplicated the addition of the sidebar-bottom.php file.
genesis_register_sidebar(array(
'name'=>'Sidebar Bottom Left',
'id' => 'sidebar-bottom-left',
'description' => 'This is the bottom left column in the sidebar.',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));
genesis_register_sidebar(array(
'name'=>'Sidebar Bottom Right',
'id' => 'sidebar-bottom-right',
'description' => 'This is the bottom right column in the sidebar.',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));
So - I think there's a simpler way to do it, but that worked for me on another site.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberPossibly dumb question, but - under the box for "Exclude Terms by ID," did you change the dropdown to say "exclude?"
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI'm not sure I totally understand the question, but I think what I would do is create a .PSD for the background of each slider image and have part of the curve (or whatever) be incorporated into that image and then let the curve continue above the slider. Does that make sense? Kind of like on these sites, where the slider images have a background that matches the background of the page:
And then you could also make the background image behind the slider itself utilize the same background as the slider images, so that you really wouldn't see that the slider image is a rectangle.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberThe Genesis Simple Edits plugin will let you customize the display of the post-info (top of post), post-meta, and footer. You can remove the comments link that way and I think it should remove the circle, as well. Not sure if you're saying you want to show the number of comments without the circle, or that you don't want to show anything comment-related at all.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberAmy - do you have access to the old support forum? It appears this topic was addressed there a few times. I'm pasting in some code from one of the threads (thread is here: http://www.studiopress.com/support/showthread.php?t=110669). The fix that worked in that case was as follows:
It depends on which you want to change
PHP Code:
'feature_image_size' => 'featured',
'feature_image_class' => 'alignleft post-image',
'feature_content_limit' => 0,
Either set a value like 500 for the feature_content_limit or set the feature_image_size to 0
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI think the images in the first two posts are behaving the same when you look at each individual post. I'm wondering if perhaps they are behaving differently in the front page because "Uploading an Image 1" is down in the grid section and "Uploading an Image 2" is in the featured section. I think what's happening is that the featured posts are showing the full content and so, when you click on the image, it takes you to the image attachment page - just like it does when you look at a post individually. The grid posts are creating a thumbnail image that is linked to the individual post. I believe that Generate is set up such for that the featured posts above the grid, it will display the first image within the post, whether that image has been designated the Featured Image or not.
So, for the first two posts, I don't think it's a function of how you attached the image. I MAY BE WRONG.
For the third one, there is no image attachment page because it's pulling the image from somewhere else instead of from your site - well, I mean, maybe it THINKS it's pulling the image from another site, because you pasted the URL in.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI'm just part of the Oswald lobby - don't mind me.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberLooks terrific!
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!November 30, 2012 at 5:09 pm in reply to: Code snippets – add body class to category or to page template #2682Dorian SpeedMemberI NEVER NOTICED THAT WAS THERE.
This changes everything.
Well, not everything, but that is really cool and useful. I wish this new forum had a "sheepishly shuffling off the page" emoticon I could deploy here.
I guess my solution would work if you have a client who doesn't want to have to remember to use the Layout settings when composing a post.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberVery nice, Seth! I particularly like the Tierney site. Really shows off the logo and the portfolio.
On the second site, I feel like I'm seeing Arial and not Helvetica Neue, but that may be because I'm old and tired and can't tell the difference. No, wait - it's because I don't have Helvetica Neue on my computer, I guess. I think I might use more Oswald across the site, like for the post titles. It feels like the Arial is very prominent in comparison to the Oswald.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI think it should work if you change it to this:
.noborder {
border: none !important;
background:none;
padding: 0;
margin: 0;
box-shadow: none !important;
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
}There's got to be a cleaner way to do this without all of the !important declarations...but this seems to work in Firebug, at least.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet! -
AuthorPosts