Articles of add theme support

Show video as part of the post?

I am doing a post in wordpress, but I want to put a video as part of the post. I mean, I have a paragraph but after the paragraph I want to put a video. I did put it as media, but it just shows a link and if I clic on the link it […]

REQUIRED: The theme must not used the <title> tags. | REQUIRED: The theme must not call to wp_title()

I am getting these three warnings while running the theme-check plugin. REQUIRED: The theme must not used the <title> tags. REQUIRED: The theme must not call to wp_title(). REQUIRED: The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output I am using this in my headers <title></title> […]

Formatting Multiple add_theme_support Arguments

In my functions.php I have the following: add_theme_support( ‘post-thumbnails’, ‘html5’, array( ‘comment-list’, ‘comment-form’, ‘search-form’ ) ); …which in WP 3.8.1 disables e.g. featured image (i.e. post-thumbnails). My question is how to properly format all these support items in the add_theme_support function; is adding two separate function calls right or ‘wrong’? add_theme_support( ‘post-thumbnails’ ); add_theme_support( ‘html5’, […]

check current_theme_supports in admin_menu hook

I’m adding a menu and sub-menus via the admin_menu hook in my functions.php. One of the sub-menus I want to add is menus. I want to make sure that the theme supports menus before I do that, so I tried using the current_theme_supports function, but it returns false, apparently because $_wp_theme_features is still null at […]

How to add default images for custom backgrounds?

The custom header feature allows (in some code I have found) to suggest several default images to use in the custom header. Could the same be built in the custom background? The idea is to have already some textures available for the user to choose from in the theme. Any ideas?

Custom Background-Image not showing up

I have added theme_support for my background-image and its showing up in the admin where I can set it and from there it looks as it should, but if i go to my website outside of the admin the background is completely white. I can un-comment this section in my css to make it work […]

add image size still doesn't work even after regenerating thumbnails

I’m encountering this very frustrating problem where add_image_size() just doesn’t seem to work at all (in fact, I’ve never seen it even work before). By not working, I mean not resizing / crop (if I take away my CSS width / height, the thumbnail will be the exact size in which I have uploaded it). […]

JetPack Infinite Scroll not working on custom theme

I have a custom theme where I’ve tried to integrate the Infinite Scroll option within JetPack. Per this article, I’ve added the following code to functions.php (in addition to activating the module) – <?php add_theme_support( ‘infinite-scroll’, array( ‘container’ => ‘content’, ‘footer’ => ‘page’, ) ); ?> The live site can be found here. My problem […]

Remove Tag from theme support

I would remove Tag capability from classic Post type, can I use remove_theme_support( $feature ); and how to do this ? Thanks in advance

Editing the custom background CSS

I have added the add_theme_support( ‘custom-background’); function to my functions.php but the css added to the wp_head isn’t the way I want it to be. <style type=”text/css” id=”custom-background-css”> body.custom-background { background-image: url(‘http://localhost/wordpress/wp-content/uploads/2016/05/bg_green_dark.jpg’); background-repeat: no-repeat; background-position: top center; background-attachment: fixed; } </style> I have a div as background. <div id=”bg”></div> And I want to add custom-background […]