adsense

How to Hide the Sidebar Title in WordPress





1. Log in to the WordPress dashboard and navigate to 'Appearance.' Click 'Widgets' under 'Appearance' and locate the sidebar you wish to edit. Click on the sidebar's name to expand it and view its widgets. Expand a widget by clicking on it to see its options. If the widget has a 'title' option, you can delete the title and click 'Save' on the widget to remove its title.
2. Click the 'Editor' link under 'Appearance' and select the sidebar.php file from under the 'Templates' header on the right side. Find the sidebar title -- usually wrapped in '
' or '
' tags -- and add the 'style' attribute within the first tag. Set the value of 'style' to 'display: none' to hide the header. Your sidebar title code will look similar to this:
Sidebar Title
Save the file by clicking the blue button at the bottom of the screen.

3. Select the functions.php file from the list under 'Templates' on the right side of the 'Edit Themes' screen. Locate the sidebar registration code, which starts with this line:if (function_esixts'register_sidebar')) {On the line that begins with 'before_title,' add the 'style' attribute to the HTML tag and make its value 'display: none'. The resulting code will look like this:'before_title' => '
',Save the file to finish editing.

Comments

0 Responses to "How to Hide the Sidebar Title in WordPress"

Post a Comment

Popular Posts

About