WordPress.org

Ready to get started?Download WordPress

Forums

Widgetize Theme (5 posts)

  1. Christopher11
    Member
    Posted 7 years ago #

    Hello WordPress.org. I have a theme I love the visual look of, I've made some modifications.

    I want to widgetize my theme. I'm using 2.2. I tried making recommended changes to the sidebar as suggested on automattic.com, but no dice.

    Can someone help please?

    I will post my sidebar text in below. Thank you for any help.

    <div id="menu">
    
    <?php /*********************************
    
    <ul>
     if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar() ) : ?>
    
    <li><h2 class="sidebar">Titel</h2>
    <ul>
    <li>Inhalt</li>
    </ul>
    </li>
    <?php endif; 
    
    </ul>
    ************************************** /?>	
    
    <?php /* -- Blogbeschreibung -- */
    if (function_exists('sirius_blogbeschreibunganzeige')) { sirius_blogbeschreibunganzeige();} ?>
    
    <?php /* -- Kalender -- */
    if (function_exists('sirius_kalender')) { sirius_kalender();} ?>
    
    <?php /* -- Kategorien -- */
    if (function_exists('sirius_kategorien')) { sirius_kategorien();} ?>
    
    <?php /* -- Suche -- */
    if (function_exists('sirius_suche')) { sirius_suche();} ?>
    
    <?php /* -- Letze Kommentare -- */
    if (function_exists('sirius_kommentare')) { sirius_kommentare();} ?>
    
    <?php /* -- Seiten -- */
    if (function_exists('sirius_seiten')) { sirius_seiten();} ?>
    
    <?php /* -- Blogroll -- */
    if (function_exists('sirius_blogroll')) { sirius_blogroll();} ?>
    
    <?php  /* -- Archiv -- */
    if (function_exists('sirius_archiv')) { sirius_archiv();} ?>
    
    <?php  /* -- Feeds -- */
    if (function_exists('sirius_feeds')) { sirius_feeds();} ?>
    
    <?php  /* -- Meta -- */
    if (function_exists('sirius_meta')) { sirius_meta();} ?>
    
    </div>
  2. moshu
    Member
    Posted 7 years ago #

    1. Learn how to post code...
    2. Duplicate post: http://wordpress.org/support/topic/118847?replies=6
    3. You probably didn't read carefully the article about widgetizing. (it has been given you several times in other threads)
    4. In your code above the only "widget-like" portion is the Titel. Nothing else. If that's waht you want, then it's fine.

  3. Christopher11
    Member
    Posted 7 years ago #

    moshu,

    1. Had you given even a modicum of thought to your irritable message before posting, it might have occurred to you that the reason I made several posts on this topic, each well-intentioned and politely stated, is that I have not resolved my issue. Are you incapable of this kind of inference (your post is poorly written and contains several spelling errors), or just lazy about thinking it through?

    2. I read the automattic article on the issue several times, and experimented for some time with modifications to my sidebar code. Web articles like this (again, I am speaking here to an intelligence that may well be beyond you), though very helpful as starting points, are by nature generalized, and cannot speak to every issue a layperson will encounter. Hence, moshu- web forums. And web moderators.

    Incidentally, I clicked a single post of yours at random, and you had a similarly prissy, critical message for the person who posted that thread. You will likely say you are trying to moderate and keep the forum on track, but that is a deception, one you first had to get over on yourself. Elitism and negativity are simply not helpful. Ever.

    Finally, I would like to publicly express my gratitude for all the people who have helped me in web forums in the past. They are a wonderful way for people to connect with and help other people, and create good karma. Thank you!

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    After a bit of searching, I figured out that you're using the Sirius theme. I'm looking at it now.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    I think these are correct (have not tested them):

    The sidebar.php should look like this:
    http://wordpress.pastebin.ca/525998

    The functions.php should look like this:
    http://wordpress.pastebin.ca/526010

Topic Closed

This topic has been closed to new replies.

About this Topic