Hide page title in WordPress 3.0

the videos shows options that come with the headway theme, in order to see them you must use the headway theme. it’s not a build in functionality of WordPress, however you can use the_title filter to replace or remove the title for a specific post based on custom fields values like so: function my_title_filter($title){ global … Read more

Customise search form in the Widget

if your theme have not search-form.php file then you will create the file and add the custom css there. Because search widget is calling the get_search_form() function. First it will search the search-from.php file from activated theme folder. If there have no file then it will call wp’s default search form. See the Codex

where can i add custom script to stop header video from autoplay

If you have your own theme or a child theme then you can add this in script tags to one of your templates. I’d suggest your footer template, just after the call to <?php wp_footer(); ?> <script> jQuery( document ).ready( function() { jQuery( document ).on( ‘wp-custom-header-video-loaded’, function() { jQuery(“#wp-custom-header-video”).attr(‘autoplay’,false); }); }); </script> Note that I’ve … Read more

How to change in customizer the “site identity” tab required capabilities

This is how I’ve interpreted from the wordpress docs at least. Originally these settings were made with add_setting and it is where the capability was originally set. Fortunately, we can use get_setting to change that value. It seems to work very well for your case. function wpseo_206907_add_back_customizer_controls_for_not_admins( $wp_customize ) { $wp_customize->get_setting( ‘blogname’ )->capability = ‘edit_theme_options’; … Read more

Limit comments displayed on basis of user_id

The pre_get_comments hook Note that the single post’s comments are fetched with get_comments(), within the comment_template() function. The get_comments() function is just a WP_Comment_Query object wrapper, so we can restrict the comment query with the pre_get_comments hook. Example #1 Here’s a simple user_id restriction example: ! is_admin() && add_action( ‘pre_get_comments’, function( \WP_Comment_Query $q ) { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)