Support » Theme: Max Magazine » tag.php (editing)

  • 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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael

    (@alchymyth)

    Forum Moderator

    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

    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; ?>
    Michael

    (@alchymyth)

    Forum Moderator

    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.

    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 ?

    Michael

    (@alchymyth)

    Forum Moderator

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘tag.php (editing)’ is closed to new replies.