• Resolved smashige

    (@smashige)


    hi,
    I’m using wordpress (template default 1.52) and I wondering if I can remove the numbers next to my categories. is there also a way of removing the date which is indicated under the headline of one post?
    https://www.smashig.com/index.php
    thanks a lot for your hlep

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi, If I remember right, find this in the sidebar.php file of your default theme:

    <h2>Categories</h2>
    < ul >
    <?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>
    < / ul
    Change this:

    <?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>

    To this: <?php wp_list_cats(); ?>

    spencerp

    P.S. For the other issue, I’m not sure what you’re really looking for persay lol. Sorry…lacking beer tonight and can’t think great….sigh.. UPDATE: Sorry, forgot to mention you can’t have spaces between the <?php and ?> part. Just assumed most know that hehe…my bad.

    Thread Starter smashige

    (@smashige)

    hi,
    i tried it out > I replaced
    <?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>

    to <? php wp_list_cats(); ? > but
    unfortunatley it doesnt work – I get an errormessage>>>
    Parse error: parse error in /srv/www/htdocs/web86/html/wp-content/themes/default/sidebar.php on line 43

    I should also drink some beeeer :-)))
    cheers lisi

    Spencerp’s solution looks correct to me, <? php wp_list_cats(); ?>, but remove the ‘space’ between the first ‘?’ and ‘php’. Then it should work.

    Yes, it should be:

    <?php wp_list_cats(); ?>

    (I’ll soon give a class in using backticks…)

    Also smashige, those numbers appear to be part of the category name (since they’re part of the link). Are they possibly not something to be edited out under Manage > Categories?

    Sorry, forgot to mention you can’t have spaces between the <?php and ?> part. Just assumed most know that hehe…my bad. =( Also, as for the second thing you’re looking for…try just removing the call tag for the date on the index.php page I believe it is this… <?php the_time(‘F jS, Y’) ?> But if you want it done to just one, then I’m not really sure how to then…maybe someone else can help ya better

    spencerp

    Thread Starter smashige

    (@smashige)

    hey guys, well holly space, what I can say, it works…. yuhuuuuuuuuuu, cheers on you ….. however, if you still here – I would have another question for you, have a look on this>>>
    now it looks like this>
    https://www.smashig.com/index.php
    but it should look like this>
    https://www.smashig.com
    https://www.smashig.com/layout.html
    do you konw how I can create a permantly image between the pages and content and the right sidebar?
    cheers to the php kings, from the non php queeen!

    Oh! I know what you’re talking about I think lol. My guess would be to edit the CSS file of the theme or layout you’re using, for the sidebar part, or the index part. Maybe under, wrap, rap, content, sidebar or something like that. But I’m not really that great with the CSS part of it…maybe someone else can help ya with that part lol..

    You want this right:

    content [ image which doesn’t move at all ] sidebar links
    But have it so it’s more on the left side of the sidebar itself.

    Also, as for the second thing you’re looking for…try just removing the call tag for the date on the index.php page I believe it is this… <?php the_time(‘F jS, Y’) ?> But if you want it done to just one, then I’m not really sure how to then…maybe someone else can help ya better

    spencerp

    Thread Starter smashige

    (@smashige)

    hi, I removed followed lines, but the dates under my headline are still here…
    https://www.smashig.com/index.php/category/1/
    hmm, anyone and idea? well, as I like it very simple I want to remove also the indicated headline (archive for the ‘1_video’ category) which appears if I’m browsing through my categories links.
    thanks in advance….
    and yes, concerning the first question, how create a design like this>
    https://www.smashig.com/layout.html
    I want to have between my content and my sidebar a permanent image, the yellow thing and the slogan,…
    thanks and cheers, lisi

    Thread Starter smashige

    (@smashige)

    I think its already a little bit confusing…mhhhmm, I will post a new thread with my design question…
    but if you know still an answer for the other question, keep on posting and thank you!
    cheers lisi

    ” hi, I removed followed lines, but the dates under my headline are still here…
    https://www.smashig.com/index.php/category/1/

    Hi, just remove that coding from the Archives.php
    <small><?php the_time(‘l, F jS, Y’) ?></small>

    file and maybe even the Single.php file as well then hehe. Well, just try it once with the Archives.php first, I’m not really sure about the Single.php file…mmm.. =) With the title thingy I think it’s this to remove in the Archives.php as well:
    <h2 class=”pagetitle”>Archive for the ‘<?php echo single_cat_title(); ?>’ Category</h2>

    Again, I’m not really positive about the last thing there I posted, but others could correct me if I’m wrong hehe…there might be ALOT more to remove then just that…
    spencerp

    Thread Starter smashige

    (@smashige)

    hi,
    thanks a lot – I got ride of the date, but unfortunatley I didn’t got ride of the <Archive for the ‘1_video’ Category> … have a look at this…
    https://www.smashig.com/index.php/category/1/
    I removed in Archives.php following lines>
    <h2 class=”pagetitle”>Archive for the ‘<?php echo single_cat_title(); ?>’ Category</h2>
    but after it was still here, do I have to remove the code anywhere else too?
    thanks for any anwsers! lisi

    <h2 class=”pagetitle”>Archive for the ‘<?php echo single_cat_title(); ?>’ Category</h2>

    Removing that gave you an error? wtf? lol…did ya try deleting your cache or temp folder? Cause it went away for me on the test blog lol..

    spencerp

    Thread Starter smashige

    (@smashige)

    hi spencerp ??
    now, I got it – I cleared it also in the archive template… well, another clearing qeustion, above my
    categories is standing a text> like, you are currently browsing the archives for the 1_video category… do you have an idea where I can get this tricky lines to find?
    keep on claering :-))) thanxxxs, lisi

    oh – I got it already, found it bymyself, wow – I get php deleting skills :-)))

    < p >You are currently browsing the a href=”<?php echo get_settings(‘siteurl’); ?>”><?php echo bloginfo(‘name’); ?>< / a weblog archives
    for the day <?php the_time(‘l, F jS, Y’); ?>.< / p >

    Try removing that in the sidebar.php file once….

    spencerp

    P.S. I removed some < > tags so you can it better lol…

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How to remove the numbers next to my categories?’ is closed to new replies.