Change sidebar headers from H1?

The tags used for the headings would be set wherever the sidebars are registered. Look for register_sidebar() in the theme’s functions.php file (or a file that has been included into the functions file). It will look like this (example from here): register_sidebar( array( ‘name’ => __( ‘Main Sidebar’, ‘textdomain’ ), ‘id’ => ‘sidebar-1’, ‘description’ => … Read more

Template part vs Sidebar (differences)

The get_sidebar($name); function loads sidebar template file sidebar-{$name}.php if no name in the prentacies is specified it loads the sidebar.php file. get_sidebar() and get_template_part() are almost identical, at the end they call locate_template() function that take care of loading from files. The only difference is the hook fired. If you use get_sidebar() for all your … Read more

Adding content to sidebars

Add a meta box to the post editor, similar to the excerpt meta box, and get the content of the meta box in your sidebar. If you want to reuse the same text on different pages create a custom post type sidenotes and add a meta box with a select field to let the author … Read more

Specific and Different Ads for each Post?

Hi @ewakened: The simplest solution would be to have them upload the ads as photos using the media features in WordPress and then to have them add custom field called “Advertisement” with the URL to the ad copied from the media module, and a custom field called and “Ad URL” to link to the advertiser’s … Read more

How to exclude parent category but show child categories?

I spent almost two months building and debugging Total Widget Control to do exactly this for all of a sites widgets. Bear with me as I strip the code out of Total Widget Control and try to make it usable for you. global $wp_query $twc_menu_item_object = $wp_query->object_id; //is the object id of the current page. … Read more

Change which sidebar get_sidebar() gets from functions.php

Get sidebar is a really thin wrapper around locate_template, which just searches the current child theme and parent theme directory for the given sidebar. get_sidebar in wp-includes/general-template.php: $templates = array(); if ( isset($name) ) $templates[] = “sidebar-{$name}.php”; $templates[] = ‘sidebar.php’; // Backward compat code will be removed in a future release if (” == locate_template($templates, … Read more

Sidebar Generator? :)

The code for this plugin is actually pretty simple. The init function loops through all the sidebars (stored in the wp_options table) and registers them in wordpress: <?php function init(){ //go through each sidebar and register it $sidebars = sidebar_generator::get_sidebars(); if(is_array($sidebars)){ foreach($sidebars as $sidebar){ $sidebar_class = sidebar_generator::name_to_class($sidebar); register_sidebar(array( ‘name’=>$sidebar, ‘before_widget’ => ‘<li id=”%1$s” class=”widget sbg_widget … Read more

techhipbettruvabetnorabahisbahis forumutaraftarium24edusedusedueduseduseduedusedueduedus