The most straightforward way would be to overwrite this in your CSS file, for instance like this:
.widgettitle {
padding: 0;
margin: 0;
}
Alternatively you can change the name of the class when registering your widget (possibly in your functions.php file) – look for the 'before_title'
parameter. Here’s and example form the original twentysexteen template:
register_sidebar( array(
'name' => __( 'Sidebar', 'twentysixteen' ),
'id' => 'sidebar-1',
'description' => __( 'Add widgets here to appear in your sidebar.', 'twentysixteen' ),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
) );
Related Posts:
- Can the new 4.8v text widget visual editor be removed?
- How to influence the information displayed on widget inside wp-admin
- How to add css class to cloud tag anchors?
- How can I get $id variable in widget’s form function?
- Using add_filter() in Widgets
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- remove the wrapping of text widget or
- remove from text-widget
- Programmatically Add Font-Awesome Icons to Category Widget
- Authors details such as social media links, emails etc → Is this Meta or something else?
- Dynamically Register Sidebars For Each Top Level Page
- Customising widget titles/headings in WP 5.8
- Widgets Section not displaying in theme customizer
- Displaying Widgets
- What is the most efficient method for loading widgets in functions.php
- Ajaxing function in widget class
- Increment price for Woocommerce Minicart [closed]
- Missing argument 2 for a custom function widgets_init
- Adding widget to dashboard with wp_dashboard_setup not working
- How to insert custom widget in custom sidebar in theme activation?
- Right way to update widget on dynamic new input field
- Passing values from a widget to a function within a plugin
- Override widget in function WordPress
- Best practices regarding the creation of custom widgets?
- How can I make a widget shortcode to control all the widgets?
- Replace a menu with widget or a custom template file programmatically
- Custom taxonomy widget in admin area
- Dashboard widget custom positioning?
- How do you Permanently Delete Sidebars
- WordPress Shortcode function display outside of widget
- Custom Sidebar only on single post
- Can’t Write Custom Widget Code In One ECHO
- Why is it so hard to add a class to the tag in the sidebar widget?
- The correct way to add a JavaScript in the functions.php [closed]
- Passing user enetered value in widget: number of words, for example
- Create a Woocommerce product widget with category filter
- Add element to widgetpage
- “All posts” in the category widget
- Register_Sidebar overwriting itself and doesn’t exist in global $wp_registered_sidebars;
- widgets not working
- How to echo Widget Title in Custom Frontend-Template Box
- New checkbox in custom widget isn’t saving data
- the_widget() inside functions.php
- How to conditionally add a widget via a hook in functions.php
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- How Do I include/Import a Custom Widget from the Parent theme into My Child Theme?
- Add a custom function to widget code
- Include widget file in functions.php of child theme
- Enable accessibility mode in widget as default
- Widget is displayed in two places
- Trying to change widgets h-tags
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- my wordpress doesn’t save items to customized widget area
- Copying a widget class to functions.php results on a blank page
- How to add widget in main menu
- Adding A New Widget to WordPress Disables the Existing Widgets
- wp_nav_walker that interacts with widgets to setup mega menu
- Expanding a function to call a plugin or show a link
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- WordPress Javascript Widget jQuery Dependency Issue
- Register a widget area when a theme option has been saved?
- Give a function a unique ID
- Add the title of a widget as an ID – for anchor links
- Swap WordPress “Widget Area” based on Page Template
- Get the ID of the page a menu item links to?
- Add container to nav_menu sub menu
- Paged Single Post doesn’t redirect to the main url after Removing Pagination
- How to add a rel attribute to images that contains their categories?
- Is it possible to be more page/post specific with admin_enqueue_script?
- Add external js file to footer with id
- How can I enable uploading excel files?
- Twentyten Child Theme: header images display messed up in admin panel
- Cannot declare function twice [closed]
- Running script based on Category
- Get array of metakey in all posts
- How do I hook into the container of wp_nav_menu?
- Remove links from the_content when using filters wp_trim_excerpt
- Where do I go to edit this area? [closed]
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Limit number of characters in different excerpts
- How to avoid saving empty data to sql while using add_meta_box
- How to assign php file(template) to several pages with same prefix page name/slug
- How to fix Function create_function() is deprecated in / themes
- Block all plug-ins from initiating redirection upon activation?
- How to display my comment count in the wordpress admin bar?
- Modifying a WordPress Plugin
- I have an fatal error on my funcyions.php
- get_locale() is different from $locale
- Remove the delete link from pages without a plugin
- Custom download page
- How to include a hyperlink in the body text of a custom password protected form?
- Get title from IDs in a string
- Update add_image_size
- Function to get the name in database table from the comma separated string
- Limit length of headline in Editor
- Way of getting queried loop before the query with a filter hook?
- Why my wp_enqueue_script doesnt work on some page?
- Trying to get this function to show below the content
- Setcookie not setting cookies anywhere except admin
- WooCommerce, change “Add to Cart” to “Link to Product”, only for specific categories