• Bluetera

    (@afemaleprodigy)


    I am trying to edit some of my widgets as it seems some of the headers are formatted differently then others. But I can’t find the actual code that outputs the specific html and css for each widget. So let’s say I want to edit the “Pages” widget construction/layout. Where do I go to edit that?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The formatting for widgets should be set in your theme’s function.php file – eg:

    if (function_exists('register_sidebar')) {
    	register_sidebar(array(
    		'name'=> 'Right Sidebar',
    		'id' => 'right_sidebar',
    		'before_widget' => '<li id="%1$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3>',
    		'after_title' => '</h3>',
    	));
    }

    but you can’t isolate just the Pages widget. All widgets use the same formatting.

    Thread Starter Bluetera

    (@afemaleprodigy)

    Well somehow, some of my widgets are being shown differently then others. Take a look at this…

    https://www.waynecoakleymarketing.com/

    The first three boxes are the same, but the second two are different.

    There is a random bracket showing up in them and I don’t know where that’s coming from either.

    Thread Starter Bluetera

    (@afemaleprodigy)

    If you look at the source code, you can see the difference between those blocks. So somehow, they are being written differently. I’m trying to figure out where to edit the code that is putting that out.

    <div class="sideblock">> <h3>Recent Posts</h3>

    here is the different one…

    <h3>Search Posts</h3>
    
     <div class="sideblock">>
    Thread Starter Bluetera

    (@afemaleprodigy)

    Looks like the tags layout is reversed.

    Thread Starter Bluetera

    (@afemaleprodigy)

    I found it! It WAS a problem in the functions.php

    i realize this is an old thread… but i have a similar question, how do i change the look of the widgets, i checked my functions.php and all it contains is this:

    <?php
    
    // Theme Initialization -- Copyright PageLines 2010 -- Designed by Andrew Powers -- 
    
    // GET CORE ///////////
    
    	if(file_exists(TEMPLATEPATH.'/_core/init_core.php')){
    		define('CORE', TEMPLATEPATH . "/_core");
    		define('CORENAME', "_core");
    	}else{
    		define('CORE', TEMPLATEPATH . "/core");
    		define('CORENAME', "core");
    	}
    	include(CORE . "/init_core.php");
    ?>

    thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Where is the code for the individual widgets??’ is closed to new replies.