Chip Bennett
Forum Replies Created
-
Forum: Themes and Templates
In reply to: simplewpthemes.com themes…my inclination is to do whatever I please with their themes…
Note: that statement should not be taken as legal advice. If a Theme developer releases a Theme under a given license, those license terms are legally binding, unless and until the license is challenged.
Save yourself many headaches, including license terms, obfuscated code, spammy footer links, and Theme kill-code. Just avoid such sites like the plague that they are.
Forum: Themes and Templates
In reply to: [Oenology] tinynav overlapping logoYou would have to change the location of the
wp_nav_menu()call in the header.Forum: Themes and Templates
In reply to: [Oenology] custom 2-column page templateIf you just want to target Page ID 6, you just need to change your CSS selector slightly. Try this:
#page.page-id-6.layout-two-column #main {} #page.page-id-6.layout-two-column #leftcol {}Note that
#leftcolis positioned using a negativemargin-leftvalue.Forum: Themes and Templates
In reply to: [Oenology] tinynav overlapping logoWhen you say “logo”, do you mean the custom header image?
The custom header image is implemented as a background image for the header div, and is intended to be behind the menus and site header text.
Forum: Themes and Templates
In reply to: [Oenology] custom 2-column page templateWhat exactly are you trying to do?
Note that the layouts aren’t custom templates, but are implemented via custom post meta. It’s all done via CSS from there, so if I have an idea of what you’re trying to accomplish with the change, I can probably point you in the right direction.
Forum: Themes and Templates
In reply to: [Oenology] remove 'view/hide' from sidebarIt works for me; but I made one additional change: I moved the functions
oenology_showhide_widget_content_open()andoenology_showhide_widget_content_close()out offunctions/widgets.phpand intofunctions/custom.php.Then, when I dropped the above
add_filter()calls intofunctions.phpto test, it worked for me.Just to be sure, I tested in a Child Theme, and it worked for me as well.
I used the following, in both cases:
add_filter( 'oenology_showhide_widget_content_open', '__return_false' ); add_filter( 'oenology_showhide_widget_content_close', '__return_false' );Forum: Themes and Templates
In reply to: [Oenology] remove 'view/hide' from sidebarOh got it!
I made the two small changes and placed the callbacks below.Yes, sorry; I should have clarified: the filters may need to be hooked in at
widgets_init. If you want to put it infunctions.php:function jknetdesign_filter_widget_stuff() { add_filter( 'oenology_showhide_widget_content_open', '__return_false' ); add_filter( 'oenology_showhide_widget_content_close', '__return_false' ); } add_action( 'widgets_init', 'jknetdesign_filter_widget_stuff' );…should do the trick.
Forum: Themes and Templates
In reply to: [Oenology] ul list shows one bulletExcatly, but something still happened with just the last item on hte list. Probably needed to hot Enter after that last one.
I’m going to mark this topic as “not a support topic” since it doesn’t appear to be an issue with the Theme. Please change to “not resolved”, or start a new issue, if you do identify any related issues caused by the Theme.
Forum: Themes and Templates
In reply to: [Oenology] custom headerNote: additional filter variables are now available in the development version:
https://github.com/chipbennett/oenology/issues/110Forum: Themes and Templates
In reply to: [Oenology] remove 'view/hide' from sidebarI just pushed these filters to the master development version:
https://github.com/chipbennett/oenology/issues/111If you want to take advantage of it now, you can download the development version of
functions/widgets.php, or simply make the two small changes yourself.Then, you can write callbacks:
add_filter( 'oenology_showhide_widget_content_open', '__return_false' ); add_filter( 'oenology_showhide_widget_content_close', '__return_false' );(This shortcut brought to you by the core
__return_false()function.)Note: be sure that
Dashboard -> Appearance -> Oenology Options -> General tabShow/Hide widget content default is set to show.Forum: Themes and Templates
In reply to: [Oenology] remove 'view/hide' from sidebarThere isn’t currently a filter for that, but I can easily add one (and good suggestion; thanks!).
Note that “show/hide” merely shows/hides the Widget content. The Widget title always shows.
If you want the default behavior of Widget content to be shown, instead of hidden, you can change that via
Dashboard -> Appearance -> Oenology Options -> General tab.Forum: Themes and Templates
In reply to: [Oenology] ul list shows one bulletDo you get the same behavior if you switch to Twenty Twelve?
I can’t recreate the issue on my end. Ordered and unordered lists are a standard part of the Theme Review, and you can see Oenology rendering the official Theme Unit Test data for ordered/unordered lists, here.
Please review the Template Hierarchy for single post pages.
If you don’t want your custom post type to fall back on
single.phpfor the single post view, you will need to definesingle-{posttype}.php, where{posttype}is the slug of the registered custom post type.If you want to have a general fallback for single post pages, and customize the single post page for blog posts, you could put that cusotmization in
single-post.php, sincepostis the post-type slug for blog posts.Forum: Themes and Templates
In reply to: [Oenology] custom headerI should probably make that hook a little easier. I can pass a couple additional parameters. I’ll add that to the next version.
For now, try this:
function jknetdesign_filter_site_header( $site_header ) { // Displays the blog description, as defined on the General Settings page in the administration panel $site_header = '<p>' . get_bloginfo( 'description' ) . '</p>'; // Return $site_header return $site_header; } add_filter( 'oenology_hook_site_header', 'jknetdesign_filter_site_header' );(Edited to simply callback)
Forum: Themes and Templates
In reply to: [Oenology] custom headerOops! You have to return
$title:function jknetdesign_filter_post_header_title( $title ) { $title = '<h1>' . get_the_title() . '</h1>' // This is the part I forgot: return $title; } add_filter( 'oenology_hook_post_header_title', 'jknetdesign_filter_post_header_title' );