Articles of default

Need to hide/remove volume bar in WordPress Default Player to give more room to progress bar

I am a rookie and I am trying to make my players to look like this , but I have been trying for a couple of days and all I can do is hide it with .mejs-horizontal-volume-slider, { display: none !important; } but when I do this, the space where the volume bar was is […]

How to view WordPress' default category IDs?

It seems that WordPress has default categories with default (and unchangeable) IDs. For example, the uncategorized category seems to always have an id of 1. Is this always the case? Is there any official documentation for this (and other default category IDs)? Question (big picture) How to view a list of these default categories and […]

Is it possible to remove <ul><li> from default category widget?

I´m having some difficulty override to default category widgets in my wordpress theme. I created the theme from scratch. I want to remove the <ul><li></li></ul> from categories in the lists. I want to add my own style using <a href=””></a> instead <div class=”list-group”> <a href=”#” class=”list-group-item”>LifeStyle</a> <a href=”#” class=”list-group-item”>SmartPhones</a> <a href=”#” class=”list-group-item”>Business</a> <a href=”#” class=”list-group-item”>Graphic […]

Enabled checkbox by default in WordPress widgets

The code works as expected. The issue happens if I set ‘show_post_count’ => 1 by default. In this case checkbox will be enabled always. How should I update the code to work as expected even if checkbox value set to 1 by default. <?php class Custom_Archives_Widget extends WP_Widget { /** * Register widget with WordPress. […]

How to make new plugin setting checkbox default as checked

I have created a new plugin setting in an existing plugin that needs to be checked by default when users update to the new version because a lot of the original features are now activated by this checkbox. This is the setting from my settings page: <td> <?php printf( ‘<input id=”bodhi_svgs_settings[advanced_mode]” name=”bodhi_svgs_settings[advanced_mode]” type=”checkbox” %2$s />’, […]

Are the default entries for a user in wp_usermeta documented?

On a fresh vanilla install of wordpress users have default entries like nickename, first_name, last_name and so forth in wp_usermeta. I’m not sure if that changes often or at all but I can’t seem to find any documentation what the default entries are. I would have expected it here: https://codex.wordpress.org/Database_Description#Table:_wp_usermeta Is the default set documented […]

Display thumbnails for certain category posts

I have wondered about the web and came across this beautiful piece of code: if(has_post_thumbnail()){ the_post_thumbnail(); }else{ echo ‘<img src=”‘ . get_bloginfo(‘template_directory’) . ‘/images/default_post_thumb.jpg” />’; } What it does, is adds a default thumbnail to every single post. That’s good for a portfolio blog, but what if I have loads of categories, e.g. one category […]

Images give 404 after changing default domain

Never encountered this issue before. So I’ve just moved a site for a client to another server and for some reason all images give me a 404 when I change the default domain in the database (siteurl and home). CSS, JS and other files are linked correctly – it seems there’s something affecting the uploads […]

Change “empty trash” button text?

I was able to find information on how to change the edit views text but so far I’ve come up empty with changing the text of the “empty trash” button. I’d like to change it for my task management CPT to “Empty Archives.” Any suggestions on where to look on how to do this or […]

Set default options for inserting media

Is it possible to set default options for inserting image into article. I want every image to link to full image and be right aligned. Setting this manually every time is annoying and unproductive. Can I do this with some hook in my functions file?