How to edit Widgets / Links with dynamic sidebar
-
Hey everyone,
I am working from a custom theme template with a widgetized sidebar (dynamic_sidebar). I have been successfully in changing the headers of widgets that are hardcoded into the sidebar (see Archives and Categories).
I don’t know how to change the headings for the Links (About and Support) and Widgets (Popular Tags) have I added through the WP 2.7 dashboard. I’ve tried to look through the main style.css and make changes but nothing seems to work for me.
How do I change the headings to appear like the headings from my hardcoded widgets?
Hoping somebody can help save me hours of trying to figure this out.
Thanks!
-
wp-includes/widgets.php
is where the native widget code resides.Also consider using Otto’s php code widget so that you don’t have to modify core code.
Thanks! Is this the line of code in the wp-includes/widgets.php file that controls the appearance of the header?
$defaults = array(
‘name’ => sprintf(__(‘Sidebar %d’), $i ),
‘id’ => “sidebar-$i”,
‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => “\n”,
‘before_title’ => ‘<h2 class=”widgettitle”>’,
‘after_title’ => “</h2>\n”,Also, is Otto’s php code widget the same as the ExecPHP plug-in. I downloaded the plug-in but had a bit of trouble getting up-to speed on it.
wp-includes/widgets.php file that controls the appearance of the header?
Looks right…
Also, is Otto’s php code widget the same as the ExecPHP plug-in. I downloaded the plug-in but had a bit of trouble getting up-to speed on it.
Otto’s plugin allows code in a widget, the other allows code in a post’s content.
wp-includes/widgets.php file that controls the appearance of the header? Looks right…
I modified h2 to h1, but it did not alter blog. I’m extremely frustrated and lost. Is there anything else I can do?
Otto’s plugin allows code in a widget, the other allows code in a post’s content.
Thanks!
Otto’s plugin allows code in a widget, the other allows code in a post’s content.
FYI, ExecPHP plugins now allowed code executions in the text widget.
- The topic ‘How to edit Widgets / Links with dynamic sidebar’ is closed to new replies.