Allows a theme or plugin to register support of a certain theme feature.

learn more… | top users | synonyms

0
votes
0answers
19 views

How to Edit Layout of a Particular Post Format?

I am 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 ...
0
votes
1answer
52 views

Replaceing _custom_background_cb

I'm making a theme where I'm adding support for the custom background feature with this standar function: // fig. 1 <?php function custom_theme_support() { ...
0
votes
0answers
13 views

Custom background not saved

I have an issue with WordPress "Add theme support" function, in relation to a custom background function. I correctly added in functions.php: add_theme_support('custom-background'); The custom ...
0
votes
0answers
42 views

Why, when it comes to custom background and image, does 'The first value registered' win?

I'm messing about with overriding parent themes by child themes. The parent theme registers custom backgrounds by hooking add_theme_support('custom-background',$args) to after_setup_theme. Now, if I ...
0
votes
0answers
115 views

Add “post option” support parameter in custom post type using Hueman Theme?

I created a custom post type and I want to add "post option" in my custom post type where in I would be able to select if I would include a sidebar or not, a layout option. I would like to ask if what ...
1
vote
1answer
210 views

Adding schema.org itemprop to WP4.1 Title Tag

Since WP4.1, there is a new 'title-tag' theme feature to add the title tag. I'm reading an article here to add itemprop to the <title> tag so that it will look like this : <title ...
0
votes
2answers
71 views

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 ...
0
votes
1answer
167 views

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 ...
0
votes
0answers
40 views

How to correctly add the featured immage (thumbnails) support in a WP theme? Why I can't add a featured immage?

I have developed this custom WP theme: http://www.asper-eritrea.com/ As you can see into the post excertpt (in the home page) it is showed the first immage into my posts. To do it I use this code: ...
0
votes
1answer
134 views

Use different post formats on different post types

I added post-formats support like below. add_theme_support( 'post-formats', array( 'gallery', 'link', 'quote', 'audio', 'video' ) ); I also added post-formats support to custom post type like ...
0
votes
1answer
79 views

Adding theme support for a custom header image

I'm using add_theme_support( 'custom-header', $defaults ); to support custom header images in my theme. The $defaults are described in the Custom Headers article $defaults = array( ...
0
votes
1answer
945 views

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 ...
1
vote
3answers
217 views

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 ...
0
votes
1answer
284 views

add_theme_support('custom-header') does not add the option to customize

I am using this to get custom header support to my new theme: function my_add_header_support() { $ch_defaults = array( 'default-text-color' => '', ...
0
votes
1answer
182 views

add_theme_support('my-custom-feature')

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 ...
1
vote
1answer
89 views

Registering different Post Formats for Blog Post and CPT

I'm using following code to register post formats for my blog posts ... add_theme_support( 'post-formats', array( 'gallery', 'video', 'audio' ) ); Now, i want to add post formats support for my CPT ...
1
vote
1answer
2k views

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) - ...
0
votes
0answers
276 views

Include a page template along with add_theme_support()

I'm not even sure this is possible but before I start thinking up crazy solutions, I'll see if there is a WordPress way to do it. Here's the deal. I have a timeline jQuery plugin all set up on ...
0
votes
1answer
723 views

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 ...
0
votes
1answer
455 views

Some problems calling a function into sprintf() inside functions.php template file [closed]

I am new in PHP and WordPress and I am personalizing an existent template and I have the following problem. In the function.php file of the template I have the following function: function ...
0
votes
4answers
2k views

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 ...
0
votes
1answer
58 views

How can i display in themplate file only a few post

How guys , i my archive themplate i have 3 tipe of themes: -poster -complex -simple How can i display a certain number of post for arhive themes: Ex: for my poster i want to display 24 posts(only ...
3
votes
2answers
1k views

Advantages and disadvantages of using automatic-feed-links

What are the advantages and disadvantages of using add_theme_support('automatic-feed-links') in my functions.php file?
0
votes
3answers
165 views

How to add a custom font in a theme

I want to add a custom font into my theme. Please let me know if this is just as simple as uploading the font to a new folder named "fonts" and then changing the css and renaming the font-family ...
0
votes
2answers
76 views

Post-thumbnail only for specific post-types?

I have this in my functions.php add_theme_support( 'post-thumbnails' ); This means all my post-types (normal posts and custom-post-types) have post-thumbnails enabled. Is it possible to just ...
2
votes
3answers
152 views

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 ...
0
votes
1answer
454 views

Add Post Format Support to Twentyeleven Child Theme

On a Twentyeleven child theme's functions.php file I attempted to add video post format support using: add_theme_support('post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', ...
1
vote
1answer
75 views

Is it better to create a function or a variable for current_theme_supports?

Well I just asking myself this, there are two ways I could implement this. What would be a better fit to coding standards? Or is this just a a matter of personal like? And what about php and memory, ...
2
votes
1answer
129 views

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 ...
0
votes
2answers
753 views

add_theme_support( 'custom-header' ) does not add option menu in dashboard

I'm writing a new theme from scratch, based off the Toolbox theme. My installation of WP is straight out of the box. I added add_theme_support('custom-header'); to my functions.php file, but the ...
2
votes
3answers
1k views

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
0
votes
2answers
282 views

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 ...