Chip Bennett
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Oenology] custom headerRegarding #2. How do disable the hyperliknk? I don’t want to remove the whole title.
The filter I provided should work:
function jknetdesign_filter_post_header_title( $title ) { $title = '<h1>' . get_the_title() . '</h1>' } add_filter( 'oenology_hook_post_header_title', 'jknetdesign_filter_post_header_title' );Did it not?
Regarding #3.
I changed it to posititon:relative and float: left.
Is this proper?For the footer? If it works for you, it’s proper. 🙂
I’m not sure that it needs a float, but again: if that got it working for you, then great!
Also. Where is the closing #extent tag? I want the box shadow to include the footer.
Look in
footer.php, line 156.Forum: Themes and Templates
In reply to: [Oenology] H2 tags won't clear imagesGlad to help! Thanks for using Oenology.
Forum: Themes and Templates
In reply to: [Oenology] H2 tags won't clear imagesYes I do want them to clear.
They are clearing floats. That’s why the headings are appearing below the image.
If you don’t want them to clear, you need to apply this style:
h2 { clear: none; }Then, the image will float inline with the headings.
Forum: Themes and Templates
In reply to: [Oenology] H2 tags won't clear imagesI’m not sure I’m following exactly what you’re wanting to do?
All the headings (h1-h6) are set to
clear:both;, so all headings are designed to clear floats. So, if the image is floated, the headings should clear the float.If you don’t want H2 headings to clear the floated image, set:
h2 { clear: none; }Forum: Themes and Templates
In reply to: [Oenology] custom header1. Header Image
In oenology, the header image is implemented as a background image, thus it’s not clickable.
You could adjust the line-height and width of the link that contains the header text, though, to emulate a “clickable” header image.
2. Unlink page titles
This is filterable, via
oenology_hook_post_header_title, e.g.:function jknetdesign_filter_post_header_title( $title ) { $title = '<h1>' . get_the_title() . '</h1>' } add_filter( 'oenology_hook_post_header_title', 'jknetdesign_filter_post_header_title' );(Take a look at
functions/hooks.phpto see the full construct of the title, for further customization.)3. Do featured images work on pages?
Featured images are supported for both posts and pages, but are only implemented for posts. They display in the post header, with a size of 55x55px, hard-cropped.
There are myriad ways to display featured images in posts, depending on your needs.
4. How do I make the footer non-sticky
Look in
style.css, line 403:
https://github.com/chipbennett/oenology/blob/master/style.css#L403You’ll want to adjust:
position:absolute; bottom:0;And you’ll probably need to adjust other related styles if you modify that.
Forum: Themes and Templates
In reply to: [Oenology] wp footer infoThere is no Theme option exposed, but it is filterable.
Look in
functions/hooks.php, line 1051, at functionoenology_hook_site_footer().This hook is an array:
array( 'copyright', 'wordpress', 'themecredit' )The WordPress text is in the
wordpresskey, so to remove it, you can simply add a filter:function jknetdesign_remove_wordpress_footer_text( $footer ) { unset( $footer['wordpress'] ); return $footer; } add_filter( 'oenology_hook_site_footer', 'jknetdesign_remove_wordpress_footer_text' );If you don’t want to put this filter in a Child Theme, you don’t have to. You can put it in a site functionality Plugin just as easily.
Forum: Themes and Templates
In reply to: How to call options from theme options to display in theme.Fantastic!
(Please be sure to mark the topic as “Resolved”, so others know that the issue is resolved.)
Hmm… strange side effect, I guess! 🙂
And if you disable this Plugin, email notifications stop working altogether, even to the post author (or moderation notifications to the admin)?
Forum: Reviews
In reply to: [cbnet Different Posts Per Page] Messed up databaseThis Plugin doesn’t interact with the database, other than to store/retrieve its own
wp_optionsentry.It does not, and cannot, do anything to your static Pages. It merely filters the posts query via
pre_get_posts, for certain contexts (blog posts index, archive index, category index, etc.)Could you describe your problem in more detail, so I can help you resolve it? What Theme are you using, and what Plugins do you have active? I suspect that either your Theme or an active Plugin is improperly using
query_posts(), which resulted in what you observed.I’m really unsure. All my Plugin does is replace the Pluggable functions used to send the notification/moderation emails. It doesn’t determine when or how to fire the functions.
Do you have any other Plugins that may be interacting with the notification emails?
Thanks for the positive feedback, and thanks for using the Plugin! 🙂
Forum: Themes and Templates
In reply to: Removing Comment SpaceThat margin is coming from the
.site-content articleCSS rule on line 958 ofstyle.css(assuming the style is inherited from Twenty Twelve itself).To override it for all pages:
.page .site-content article { margin-bottom: 0px; border-bottom: none /* if you want to remove the double-ruled line */ }If instead of overriding on all pages, you only want to override on a specific page template, named
template-foobar.php:.page-template-template-foobar-php .site-content article { margin-bottom: 0px; border-bottom: none /* if you want to remove the double-ruled line */ }That CSS class construct is:
.page-template-{filename-ext}Note also that there is some top margin on
footer[role="contentinfo"], that you may want to override similarly.Forum: Fixing WordPress
In reply to: Post Format TemplateRefer to the Taxonomy section of the Template Hierarchy Codex entry. The name of the template file to display all posts with the “aside” post format is:
taxonomy-post_format-post-format-aside.phpForum: Themes and Templates
In reply to: Post Formats Archive PagesI wrote a tutorial for how to take advantage of Post Formats as a taxonomy.
In your case, here’s the magic sauce:
'<a href="' . get_post_format_link( get_post_format() ) . '">' . get_post_format_string( get_post_format() ) . '</a>'