Tagged: Post Formats
If I enable support for Post Formats everything works, but all pages show the icon Standard (default.png)
Any page that I create I see the icon Standard.
I would like to hide the icon Standard, only in the pages.
I also tried a new WordPress installation with Genesis + Genesis Sample.
In the functions.php I added the following code to support, and nothing else:
add_theme_support( 'post-formats', array( 'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' ) ); add_theme_support( 'genesis-post-format-images' );
In the images folder I added the post-formats folder, which contain icons.
Same result, if I create a new Page that shows the icon Standard.
Is there a way to disable this icon? (pages only)
Thanks for any help
There are a few ways to do this. I would do this by replacing the default Genesis callback for the appropriate action and replacing it with a custom callback function. Within my custom function, I would then call the original Genesis callback function (that will display the post format icon) if and only if a certain criteria is met. I included an example below;
it works fine, great! But if I use it with the code that disables links and alt text: http://www.studiopress.com/forums/topic/disable-link-and-alt-on-the-icons-post-formats/
a conflict occurs, the icons doubles:
The first icon is as I would like, without link and without alt info, but is also seen in Pages.
The second icon is seen only in Posts, but has links and alt info.
Thank you so much for the help
I forgot about that already. The logic for can just be adjusted to the code that removed the link. Here is the updated code to the gist that will remove the link. You can disregard the original code I originally gave you in this thread.
It works perfectly!
Thanks for helping me, you're very kind 😉
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!