Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [add-theme-support]

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

1
vote
1answer
21 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-...
0
votes
1answer
12 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 ...
0
votes
0answers
11 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 ...
1
vote
1answer
51 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 ...
0
votes
0answers
13 views

How can I use my theme's php file as a login popup?

I'm having listingpro theme. It uses popups.php file for its login popup. Now, I want to create a custom link through which user will be redirected to the login popup. So how can I use the popups.php ...
0
votes
1answer
26 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 "Mobile ...
3
votes
1answer
211 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 ...
3
votes
1answer
365 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 ...
0
votes
1answer
28 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 ...
1
vote
2answers
1k 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 ...
0
votes
1answer
135 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 ...
0
votes
2answers
1k 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 ...
1
vote
0answers
433 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 ...
1
vote
0answers
54 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. ...
3
votes
1answer
65 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 ...
2
votes
1answer
2k 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:...
1
vote
2answers
22 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 ...
2
votes
1answer
2k 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 ...
0
votes
1answer
364 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 ...
4
votes
2answers
591 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 ...
0
votes
2answers
574 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', '...
17
votes
4answers
13k 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 ...
3
votes
1answer
3k 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-...
0
votes
1answer
30 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 ...
-3
votes
1answer
33 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 ...
0
votes
1answer
186 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 ...
1
vote
1answer
79 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 ...
1
vote
1answer
44 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?
0
votes
1answer
548 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 ...
0
votes
1answer
515 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 ...
1
vote
1answer
891 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 ...
0
votes
3answers
2k 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 ...
0
votes
1answer
361 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-...
0
votes
0answers
129 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
301 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
809 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 itemprop="...
0
votes
2answers
234 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 I'...
0
votes
1answer
989 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
103 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
305 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 below. ...
0
votes
1answer
403 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( 'default-image'...
2
votes
3answers
15k 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
620 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 (i....
1
vote
1answer
1k 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
841 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
182 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 '...
2
votes
2answers
5k 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) - ...
2
votes
2answers
1k 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
1k 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
1k 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 ...