The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
22 views

change the $content_width

I am creating a child theme based on 2016 I want to set new upload media images add_action( 'after_setup_theme', 'azm_add_image_size' ); function azm_add_image_size() { add_image_size( 'helen', ...
5
votes
1answer
47 views

$content_width in “twentyfifteen.1.4” WP Default tHEME

if ( ! isset( $content_width ) ) { $content_width = 660; } The above mentioned code exist in wordpress Default Theme Functions.php on line#33 My Question: $content_width It looks like a global ...
1
vote
0answers
11 views

Unable to edit the “customize” section and the “widget” section is populating unknown code

My WordPress site is experiencing some major issues. I am getting a 500 server error when attempting to change the "customize" side bar, and the "widget" section is acting really weird (populating ...
-1
votes
1answer
89 views

Set add_image_size() greater then content width in media box

How can I set a image size bigger then the defined max content width in the media box? The content width is set to: if ( ! isset( $content_width ) ) { $content_width = 960; } If I add now a ...
0
votes
1answer
20 views

Figure inlined width trigger distorted layout

I recently changed my theme to completely new one (fresh), and all my post images suddenly started to break my layout. When I inspect code all images and loaded content that are wrapped in 'figure' ...
1
vote
1answer
405 views

Display oEmbed in the_excerpt

I am currently adding add_filter('the_excerpt', array($wp_embed, 'autoembed'), 9); to my functions.php file to no avail any other suggestions would be great. Also if I add $content-width to ...
-1
votes
2answers
468 views

Change featured thumbnail based on screen size

My theme has the option( like any other theme I guess) to chose a predefined featured image size( thumbnail, medium ...etc). I chose the image to be thumbnail, made it 150x150 in media settings but my ...
1
vote
1answer
83 views

Is it possible to create a conditional for content_width?

Searching here I've found two questions related and at the time, this wasn't possible. how to create a conditional content_width for a wordpress theme? And an alternative way via CSS described by ...
0
votes
1answer
138 views

Truncate title to single line & container width

Is there a way to truncate a title to the container width? I'm able to do truncate a long title to one line using the code below, but that doesn't really work for mobile. <h3> <?php ...
0
votes
1answer
873 views

$content_width for responsive UI

In our "mobile first" age a theme without responsive UI is treated like from stone age. It means that a theme could have different content width for different devices. But one of requirements for ...