Questions tagged [add-theme-support]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Array offset error on type bool and null, due to admin-bar support added

I recently started working on a new theme and added admin bar theme support by using this snippet of code in the functions.php file. add_theme_support('admin-bar'); However, I am getting the ...
Rookie Recruits's user avatar
1 vote
0 answers
128 views

Add theme support for margin

Is there a way to use add_theme_support to enable margin option in the Dimensions tab in block editor? I understand how this can be done in theme.json, but is there a way to do it with ...
Tahi Reu's user avatar
  • 216
0 votes
1 answer
8 views

Get post ID before add_theme_support

I need to enable font sizes options in editor with add_theme_support, but only for the specific post types and page templates. To distinct them, I need to get the post ID in the WP admin, before ...
Tahi Reu's user avatar
  • 216
0 votes
0 answers
41 views

How can I get the ID before after_setup_theme?

I need to get the ID of the currently edited post (in the WP admin) before the after_setup_theme is triggered, because what happens on after_setup_theme will depend on the currently edited post ID. ...
Tahi Reu's user avatar
  • 216
2 votes
2 answers
156 views

Theme's featured image option is not showing up

I'm new to WordPress development. I watched a video on how to add featured images. For some reason it's not working, and I can't really figure out why. The option for featured image is not showing at ...
Dorcas's user avatar
  • 23
2 votes
1 answer
1k views

.editor-styles-wrapper overriding my block styles in Gutenberg

I'm working on my first theme built from custom gutenberg blocks. I've managed to register blocks and enqueue their specific stylesheets, but I'm running into one issue that's kind of a pain. A lot of ...
AGKlem's user avatar
  • 41
0 votes
1 answer
591 views

Remove or rename "Default" from Gutenberg typography settings

I've added my own font sizes to the theme I'm working on, but the value "Default" persists in the dropdown. With the name scheme needed for this particular site I cannot just reformat "...
INT's user avatar
  • 1,271
0 votes
0 answers
193 views

How to add support for category excerpts?

How do I add support for excerpts for post categories in the admin? I have tried the following, but to no avail: add_post_type_support('category', 'excerpt'); add_post_type_support('post_category', '...
kloddant's user avatar
  • 119
0 votes
1 answer
547 views

Theme support title tag - how to replace the default WP separator (with a filter)?

I'm developing a theme for Themeforest and one of their requirements is about the tag. Themeforest states their requirement as follows: The theme must let WordPress add and manage the title. This is ...
ralphjsmit's user avatar
1 vote
0 answers
56 views

Edit footer via customizer

I am creating my own theme. I would like to edit the footer in the customizer. I was able to enable the custom logo etc. but I can't find a solution how to enable the footer button in the customizer. ...
Svenwas3f's user avatar
1 vote
3 answers
6k views

add_theme_support('post-thumbnail') not working

I am new to Wordpress and following a training course. Its told me to enable to use of Featured Images I need to add the following line into my functions.php: add_theme_support('post-thumbnails'); ...
Luke Palmer's user avatar
3 votes
3 answers
2k views

Add colors to existing color palette without replacing it

Using add_theme_support( 'editor-color-palette' ) one can replace the color palette in the Gutenberg editor by a custom one: add_theme_support( 'editor-color-palette', array( array( 'name'...
leemon's user avatar
  • 1,806
1 vote
1 answer
689 views

What is the point of needing add_theme_support( 'html5') in WordPress 5.x

Apparently WordPress 5.x renders HTML5 in search forms, comment forms, comment lists, gallery, etc. I've deleted this support in functions.php and HTML5 is alive and kicking. It seems odd that I would ...
breadwild's user avatar
  • 319
0 votes
1 answer
156 views

add_theme_support( $feature='menus' )

I want to ask why after I deleted the add_theme_support($feature='menus') in my functions.php there is still menus in my theme activated. why it is still there even if I did not write the ...
Lucifer Levi's user avatar
0 votes
0 answers
324 views

register_theme_directory() not working from mu-plugin

I have a must use plugin that uses register_theme_directory() but no matter what path I pass in, it always returns false. For some background I am using domain based database switching in the wp-...
user avatar
1 vote
2 answers
220 views

Will current_theme_supports return TRUE with a nonstandard add_theme_support?

Will current_theme_supports() return TRUE with a nonstandard add_theme_support() string? If I do this in my theme: add_theme_support( 'my_funky_new_thing' ); Can someone else writing a plugin do ...
Matthew Brown aka Lord Matt's user avatar
1 vote
1 answer
76 views

Theme Development: Starter Content after hook

I'm making a Wordpress theme that generate placeholder menus using the theme support "starter content". I read the documentation and is very vague: https://make.wordpress.org/core/2016/11/30/starter-...
Lucas Vendramini's user avatar
0 votes
1 answer
100 views

What is difference between add_theme_support and Theme Customization API?

I'm interested in adding customizable features to a theme. What is the difference between the following add_theme_support(...) and Theme Customization API Are they just 2 different ways to ...
Jake Wilson's user avatar
0 votes
0 answers
40 views

ERR_SPDY_PROTOCOL_ERROR

I'm experiencing ERR_SPDY_PROTOCOL_ERROR when uploading a WordPress Theme. I had transferred the site to a new host and I think I had done everything all right. When uploading a theme, this is what ...
WP Ridge's user avatar
1 vote
2 answers
2k views

"add_theme_support" for custom footer color?

I've seen theme support (add_theme_support) for "custom-header", "custom-background" and "custom-logo", but not for footer (footer colur or image). Is there no option to let users choose footer ...
Joey's user avatar
  • 23
1 vote
1 answer
419 views

Serving a custom featured image for mobile

is it a good approach to serve multiple featured images to have a proper scaling? Right now the featured image size on "Desktop" is up to 1140x250. Pretty wide and will shrink way too far on ...
Bensen's user avatar
  • 11
3 votes
1 answer
919 views

What flex-width/height does?

I'm trying to understand what flex-width/flex-height parameter in custom-logo support does. Here, https://developer.wordpress.org/themes/functionality/custom-logo/ it is said that it defines Whether ...
Ashish's user avatar
  • 349
3 votes
1 answer
649 views

Override image maximum width in theme (Using Gutenberg editor)

I recently installed Gutenberg plugin to my Wordpress installation. The theme I am using is not full width for posts. There's a "Wide" option for images in a post but the theme won't allow the image ...
mox's user avatar
  • 31
0 votes
1 answer
36 views

Footer Columns Size [closed]

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 ...
Van's user avatar
  • 1
1 vote
2 answers
6k views

Post thumbnail not showing in WP admin area for custom post type

The Featured Image Box is not showing inside the WP admin area for my custom post type (in normal post it does). Things i've already done: add the theme support within action hook with ...
jaykobo's user avatar
  • 15
0 votes
1 answer
296 views

What does add_theme_support('custom-header-uploads'); feature do?

Whilst adding features to the functions.php file, I came across the following: add_theme_support('custom-header-uploads'); What exactly does this do? I removed the entry, in the functions.php but ...
Craig's user avatar
  • 358
1 vote
2 answers
9k views

How to use add_theme_support('html5')?

I am trying to understand how add_theme_support() function works, but at the section of Html5 i tried to use it with gallery and i noticed that the markup has changed for it,and here is what i did ...
Mohamed Omar's user avatar
1 vote
0 answers
750 views

Custom Background not Appearing

I have a very simple theme to which I need to add custom-background support. When I go into appearance -> customize, I am able to select a background image. However, the background of the site ...
Bassie's user avatar
  • 133
1 vote
0 answers
73 views

Can I add multiple arrays within add_theme_support( 'colors' )?

I would like to add all possible options to add_theme_support( 'colors' ) in WP Customizer. What I have that worked was: add_theme_support( 'colors' , array( // Add colors section to Customizer. ...
Russel Fish's user avatar
3 votes
1 answer
129 views

how to pull images with no add_theme_support('post_thumbnails')

I am developing a portfolio page for my site and I gotten as far as the functionality where as I hover over a listed name of each project it will display the same title on the left hand side of the ...
Daniel's user avatar
  • 351
3 votes
1 answer
3k views

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:...
WordCent's user avatar
  • 1,827
1 vote
2 answers
75 views

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 ...
Fernando Cortés's user avatar
2 votes
1 answer
5k views

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 ...
emcolsson's user avatar
0 votes
1 answer
1k views

How do I change theme demo [duplicate]

I have purchased a theme from envato and the theme came with a bunch of different demos. I am trying to use the "app landing" demo. It has already been installed but I am not able to make it my main ...
kelvin's user avatar
  • 3
5 votes
2 answers
2k views

Why does `add_theme_support( 'html5', array( 'comment-form' )` disable client side validation?

In order to use HTML5 markup for the comment forms, I add the following code snippet to functions.php: add_theme_support( 'html5', array( 'comment-form' ) ); However, it disables client side ...
kimbaudi's user avatar
  • 151
0 votes
2 answers
873 views

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', '...
IAmJulianAcosta's user avatar
22 votes
6 answers
29k views

How to add CSS class to custom logo?

I enabled custom-logo for my theme and have it printed with <?php the_custom_logo(); ?> into the header. Is there any chance to simply add some more classes to this image directly? Per default ...
leymannx's user avatar
  • 3,061
4 votes
1 answer
6k views

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-...
J. Doe's user avatar
  • 317
0 votes
1 answer
37 views

custom-background callback breaks media uploader

I've added theme support for a custom background/color along with a callback and it seems to be breaking my media uploader, as while the uploader box appears, uploads result in an error and image ...
ConduciveMammal's user avatar
-3 votes
1 answer
38 views

How to customize a theme? [closed]

I've created a theme where I use each page title as an ID of a <div>, and for each div I put a background with CSS. Now I want to add some extra features to my theme and give the possibility for ...
h.sunboy's user avatar
  • 103
0 votes
1 answer
274 views

Strange ASCII characters overlapping content

I have a Wordpress theme I'm working on. All of a sudden there are random ASCII characters overlapping the nav tabs inside the hamburger menu, font-awesome characters, and social icons. I have tried ...
RLM's user avatar
  • 247
1 vote
1 answer
204 views

How to add theme support?

I figured this would have been a question already, but I haven't come across it. I'm wondering what the correct hook for checking theme support is in a theme and also a plugin. function ...
Bryan Willis's user avatar
  • 4,379
1 vote
1 answer
48 views

Can I make a super plugin that also has a theme?

I'm working on something that requires a user to have a plugin. I only want them to have to install one thing. Can I have a plugin that has a theme with it?
1.21 gigawatts's user avatar
0 votes
1 answer
1k views

Menu not appearing in custom theme

I made a custom theme, but the menu is not showing in appearance section. I created a separate function file named function.php and the code is: add_theme_support( 'menus' ); function ...
Sajjad Khan's user avatar
0 votes
1 answer
960 views

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 ...
Bryan Willis's user avatar
  • 4,379
1 vote
1 answer
1k views

Background image not appearing

I'm trying to add a custom background on a child theme. In the child theme's functions.php, I add add_theme_support( 'custom-background'); and the background option appears under the "Appearance" menu ...
jack_of_all_trades's user avatar
0 votes
3 answers
3k views

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 ...
Travis Patron's user avatar
0 votes
1 answer
489 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() { add_theme_support('custom-...
Isak's user avatar
  • 3
0 votes
0 answers
140 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 ...
Caspar's user avatar
  • 940
0 votes
0 answers
345 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 ...
Eli's user avatar
  • 101