Would it be a bad idea to remove get_the_image() from all template files and instead hooking it to hybrid_before_entry()?
Topic Info
- 105 posts
- Started 7 months ago by Justin Tadlock
- Latest reply from Justin Tadlock
- RSS feed for this topic
Would it be a bad idea to remove get_the_image() from all template files and instead hooking it to hybrid_before_entry()?
Edit byline from Hybrid Settings
Since the default byline will consist of shortcodes in Hybrid 0.8 it would be easy to let people build their own byline just like they build their own footer.
The only problem is that while the footer is what it is, the byline is contextual. So there would have to be separate page and post byline inputfields.
I do believe that this would make Hybrid more user friendly because many people on this support forum ask how to adjust the byline or disable certain parts of it.
Off topic: I'd like the pagination on this forum to appear above the first post as well.
You must be a logged-in exclusive member to view this reply.
You must be a logged-in exclusive member to view this reply.
Off topic: I'd like the pagination on this forum to appear above the first post as well.
With regards to that - I too would like to see it. A handy shortcut is to click Latest Reply in the TOPIC INFO box on the top right in the sidebar of this forum to jump to the latest posts.
Reaction to previous post by Justin
I'm not sure if you understood what I ment with my byline idea. My idea was too have an extra input field in the Hybrid Settings page just like the one for the footer. I like how basic the hybrid settings are right now, but one extra setting wouldn't hurt.
Byline settings
You can add custom HTML and/or shortcodes, which will be automatically inserted into your themes byline.
<p class="byline">By [entry-author] [entry-terms taxonomy="category" before=" | "] [entry-comments-link before=" | "] [entry-edit-link before=" | "]</p>
Shortcodes: [entry-author], [entry-terms], [entry-comments-link], [entry-published], [entry-edit-link].
Another idea I've been thinking about is a new shortcode. One that allows logged in users to see a 'Delete this post' link depending on their role. [entry-delete-link]
But, there's really no way to do it without messing up a lot of child themes, especially those with custom page templates.
This will probably sound stupid, but is it not possible to check if a function has already been called for before executing it?
The big disadvantage of having get_the_image() in template files is that I have to make and edit my own template files instead of making some small adjustments in my functions.php.
You must be a logged-in exclusive member to view this reply.
I loved your article about the slippery slope. You win.
New idea:Template for multiple taxonomies
Let's say I'm browsing the Pop Critics Movie Database and I'm looking for funny movies starring Brad Pitt. I get all funny movies when I select the Funny in the Genre taxonomy and I get all Brad Pitt movies when I select Brad Pitt in the actors taxonomy. Wouldn't it be cool if we could use custom taxonomies for narrowing down results?
You must be a logged-in exclusive member to view this reply.
Ability to have hybrid language files in child theme folder
I have no idea if this possible, but having translation files for ThemeHybrid in my child theme's folder would be really nice. Maybe a hierarchy just like it works with templates? If translation not found in child theme folder, search the hybrid folder.
Child theme translations could be called [childthemename]_en_EN.mo. The general translation would be called hybrid_en_EN.mo.
Why? Because every time I upgrade to the latest version of Hybrid I loose my translation file. I could ofcourse update all my Hybrid powered websites manually. But that would mean ThemeHybrid is limiting the WordPress ease of use I love so much. Besides that: language files with self-explanatory filenames make life easier.
You must be a logged-in exclusive member to view this reply.
You must be a logged-in exclusive member to view this reply.
Re: Navigation links for custom post types
Off if you ask me. I'd rather enable this feature when I want it, than disable it for all the situations where I don't want it. This is my general opinion.
Hello Justin and friends here.
I'm putting in one feature request for the next release of hybrid theme framework
Ability to disable all feeds in the theme setting page.
Although, this could be or should be in childtheme
but since hybrid already offers alternate feed address
and also the option to direct category, author, tag, search to that address,
So if it would be great to have one simple click to completely remove all feeds.
A lot of websites using WordPress are not blog, they are simply static pages.
This option will surely make it easier for user to disable feeds.
My Snippet Body Class
This may be more fitting for an update to the My Snippet plugin, but I figured it could go hand in hand with 0.8.
When using My Snippet the body class changes from inactive-primary to active-primary. This works fine on any pages that have a snippet in place, but those that don't just have a smaller content area and blank sidebar.
So I'm suggesting that when a page/post has a snippet a body class be added, like has-snippet. This way my CSS can look like this:
.content ( width: 900px; }
.has-snippet .content ( width: 600px; } .has-snippet #primary { width: 300px; }
Of course there's more to it than that, but it paints the picture.
It would be great if there is a class for the first and the last item of the top menu...or make it easy to add separators between the top menu items - maybe some kind of filter or something :)
You must be a logged-in exclusive member to view this reply.
You must be a logged-in exclusive member to view this reply.
You must be a logged-in exclusive member to view this reply.
I agree about the first/last menu item classes (though it can be tricky with the "Home" link). We'll have to wait and see what happens with the menu management system as it moves along in WP.
As for separators, It should be relatively easy to add those now.
Yes it relatively is, I am doing it with this hack:
add_filter('wp_page_menu','add_menuslash');
function add_menuslash($menuslash) {
return preg_replace('/li><li/', 'li><li>/</li><li', $menuslash, -1);
}
BUT it adds it also between the subpages in the dropdown :( (so I have to use only one level menu)
Menu Separator
Might it just be easier to add a separator using css? A background image of a slash or whathaveyou. I would think that would make more sense than altering your HTML for design reasons.
You must be a logged-in exclusive member to view this reply.
Sitemap for Custom Taxonomies
Unless it's a site-specific issue for me, the SiteMap Page Template doesn't include custom taxonomies and I think this would be an appropriate addition as the use of custom taxonomies becomes more common. (Thanks for the blog posts about taxonomies BTW - worked like a dream.)
Kate
Meta Description
Regards the "Slippery Slope Dilemma" and the Hybrid's metadescription.
I would like to know if this ( Hybrid's Meta) will be kept and supported ?
How do you plan about it ?
Will this be discontinued in the future at all ?
as for me, I REALLY like this to be there forever !
If you haven't had any plan on this , please consider keeping it.
Thank You.
Body Classes
Just a very simple add-in - the auto generated body classes include (amongs others) eg: y2010 m02 d25 h15
You gave me some nifty code for my functions.php to also deliver : w08
How about including as standard - I can then reduce my functions.php a little...
Cheers
Intelligent Navigation Classes
I'd like to have some conditional CSS classes in my navigation for more complex styling.
Currently the classes output in the <li> are page_item, page-item-{ID}, and current_page_item.
I'm proposing the addition of the class has-children when a page has child pages and a class specifying how deep the children go: depth-{levels}.
So this navigation structure:
...would end up being:
<ul>
<li class="page_item page-item-1 current_page_item">Home</li>
<li class="page_item page-item-2 has-children depth-2">About
<ul>
<li class="page_item page-item-3 has-children depth-1">Child 1
<ul>
<li class="page_item page-item-4">Grandchild 1</li>
</ul>
</li>
</ul>
</ul> You must be a logged-in exclusive member to view this reply.
You must log in to post.