WordPress.org

Ready to get started?Download WordPress

Forums

Max Magazine
Tag Cloud on sidebar (1 post)

  1. valou64
    Member
    Posted 11 months ago #

    Hello everybody,

    I will try to be clear. With the theme Max Magazine, there is the possibilty to add the widget tag cloud on sidebar, like the widget "search", the widget "calendar", the widget "Latests Tweets" etc...

    If i had the widget tag cloud, ok i have on my website tags on sidebar (look on: http://www.chasseurdudimanche.com). But i don't want simply a list. I would like a tag cloud like this (www.presse-citron.net - on the footer).

    So i made researchs. And i have found this code on the Net:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <?php if ( function_exists('wp_tag_cloud') ) : ?>
    
    <li>
    <h2>Nuage de tags</h2>
    
    <ul>
    <?php wp_tag_cloud('smallest=8&largest=22'); ?>
    </ul>
    </li>
    <?php endif; ?>
    
    So, i added this code on my file sidebar.php :
    
    <div id="sidebar">
    
    <?php if ( function_exists('wp_tag_cloud') ) : ?>
    
    <li>
    <h2>Nuage de tags</h2>
    
    <ul>
    <?php wp_tag_cloud('smallest=8&largest=22'); ?>
    </ul>
    </li>
    <?php endif; ?>
    
    <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>	
    
    <div class="widget widget_text">
    	<h3><?php _e( 'Max Responsive WordPress Theme', 'max-magazine' ); ?></h3>
    <div class="textwidget"><?php _e( 'Thank you for using this free theme. If you have questions, please feel free contact.', 'max-magazine' ); ?></div>
    </div>
    ...
    ...
    etc

    And when i add this code on the file, in my website, the tags are displayed above my other widgets sidebar and not below the last widget. I don't know what file modify to have my tag cloud correctly display (css, tag-cloud.php... etc).

    Any help or idea ?
    Thanks.

Reply

You must log in to post.

About this Theme

About this Topic