WordPress.org

Ready to get started?Download WordPress

Forums

Max Magazine
tag.php (editing) (6 posts)

  1. valou64
    Member
    Posted 1 year ago #

    Hello,
    I need to help with the tag.php
    I want that my tags appear in an original way (tags I use most bigger than others especially). A good idea of i want in my web site is here: http://www.presse-citron.net/ (in the footer).

    In this web site (http://wpchannel.com/comment-inserer-nuage-tag-blog-wordpress/#comment-29426) the webmaster gives the code to have original presentation. But, when i copy the code in my tag.php nothing happens.

    The code by default of tag.php is:

    <?php
    ?>
    <?php get_header(); ?>
    <div id="content" >
    <h2 class="page-title"><?php printf( __( 'Tag Archives: %s', 'max-magazine' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?></h2>
    <?php
    $tag_description = tag_description();
    if ( ! empty( $tag_description ) )
    echo apply_filters( 'tag_archive_meta', '<div class="archive-meta">' . $tag_description . '</div>' );
    ?>
    <?php get_template_part('includes/content'); ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    So, thanks for your help!

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    the tag cloud from your first link seems to be the default tag cloud widget;
    the second link does mention the tag cloud parameters, but it is showing the tag description code.

    I want that my tags appear in an original way

    where exactly?

    to show the tag clound within a template, you can use wp_tag_cloud() http://codex.wordpress.org/Function_Reference/wp_tag_cloud

  3. valou64
    Member
    Posted 1 year ago #

    Ok, so I re-explain (sorry for my bad english) to be sure you're undestrand well.

    In this website http://www.presse-citron.net (which is a website very popular in france about new technolgies), i found that the tag cloud on the footer is original. And i want the same for my personal website (which is not yet on line because i work with WampServer in local).

    So, in the theme i choose (Max Magazine), there is the possibility to edit the file tag.php
    On my website, my tag cloup appears in a column at the right of my posts.
    But actually, they are not like in the site presse-citron.net (they are simply wroten without large et big words).

    In an other web site (http://wpchannel.com/comment-inserer-nuage-tag-blog-wordpress/#comment-29426) the webmaster gives the code to have original presentation (notably like on presse-citron.net). But, when i copy the code in my tag.php nothing happens. This code is:

    <?php wp_tag_cloud(''); ?>
    <?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; ?>
  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    they are not like in the site presse-citron.net (they are simply wroten without large et big words).

    you posted code is correct; however, the tags are getting different sizes according to in how many posts they are used.
    if you have a new site, it is likely that a tag is used only once in a post, and therefore the tags in the tag cloud will have all the same size.

  5. valou64
    Member
    Posted 1 year ago #

    Ok :-)
    But I've used in my posts certains same tags. So to me, these tags should be larger than others. Perhaps in the code <?php wp_tag_cloud(''); ?> i need to put my tags in '' ? No ?

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    can you post a link to your site to illustrate how your tag cloud is looking right now?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags