Articles of add theme support

Add theme support for post thumbnails

I created a custom post type called products without support for thumbnails because I want to add the support for post-thumbnails in functions.php file. So I use after_setup_theme action hook and use this code: add_theme_support( ‘post-thumbnails’, array( ‘products ) ); as explained at this link: But I can’t find the Featured image box when […]

add_theme_support using a plugin

I want to create a theme specific plugin for the opern-sourced Bootstrap Genesis theme where I can use the add_theme_support function to add or remove several mini plugins or theme modules/features that I have in a plugin subfolder. I found this question here, but could not figure it out based on the accepted answer. So […]

add_theme_support( 'admin-bar' ) causes fatal error

I am trying to learn more on Theme Development so I’ve created my own and everything worked fine except when I added functions.php and tried to update it with something simple as: <?php add_theme_support(‘admin-bar’, array(‘menus’)); ?> I get Server 500 ERROR and I cannot access any part of WordPress, not even Dashboard. But then as […]

Add theme support custom header will not hide text?

I am having problems with add_theme_support(‘custom-header’); I can change the Header Text color but I can’t hide my Header Text when I leave unchecked “Show header text with your image” inside admin panel (obviously it should hide header text if unchecked). I have no idea should I add some specific CSS for this to work […]

images not showing despite using add_theme_support('post-thumbnails');

I’ve got a system for post images where I have a specific category’s post thumbnail shown in the header, with a cropped version appearing in the blog #preview, and the full size image appearing in the full post. Images are not appearing in any of the 3 locations, and I’m not quite sure why. functions.php- […]


According to the codex, there is no way that I can see to define a custom theme support feature. Ideally, I’d like to set a feature in my child theme that the parent theme could check for. Does an equivalent function exist that would be appropriate to use in this context? For example, I’d like […]

WordPress HTML5 Gallery Support – Convert HTML4 -> HTML5

As of WordPress 3.9, WordPress generates HTML5 Galleries if HTML5 is supported in the theme: add_theme_support( ‘html5′ ); Originally in my theme development I did not declare HTML5 support and I’ve already published a few galleries which are using the old DT / DL HTML. Now I have declared HTML5 theme support as shown above, […]

How to edit layout of a particular post format?

I’m looking to edit my theme layout of the aside post format. I have already included the add_theme_support() function to include the aside option when creating a post. However, the layout of an aside does not look good. I wish to style it pretty much identically to the video format. Which file in my theme […]

Override post-formats in child theme

I’m using a child theme that only has video post format, but parent theme defines all post formats: add_theme_support( ‘post-formats’, array( ‘gallery’, ‘link’, ‘image’, ‘quote’, ‘video’, ‘audio’, ‘chat’ ) ); I tried: remove_theme_support( ‘post-formats’ ); add_theme_support( ‘post-formats’, array( ‘video’ ) ); But is not working. How can I do this without modifying parent theme?

Footer Columns Size

I hardly understand WordPress at all. Am using the Generate Press theme. Everything was correct but for some reason the image of my Facebook link in the left column of my footers no longer shows the right hand portion of the image, like the margins are set too small perhaps. How do I reset it […]