Tokatter
Member
Posted 1 year ago #
I have web page with only static pages, no blog, no posts.
Under the heading on my home page, there is a category bar, and when that is clicked, a post page (with a default Hello World message) comes up. I don't want this post page.
How do I get rid of the category bar (which I have named Pottery and Design, since I couldn't get rid of it), or at least make it non-clickable so the post page doesn't show up?
I am a newbie.
Thanks!
posibly in header.php of your theme - look for some code with wp_list_categories() and delete it.
name of your theme (only useful if you are using a free theme) ?
link to your site?
Tokatter
Member
Posted 1 year ago #
Hi alchymyth,
Below is what I found in the header.php. What part of this should I delete?
My theme is Photabulous, but my site isn't public yet. I can send you the temporary URL, but then you'd need my password, right? Is it necessary in order to help me?
Thanks!
<div id="wrapper">
<h1 id="title">/"><?php bloginfo('name'); ?></h1>
<ul id="categories">
<?php wp_list_categories('title_li&depth=1'); ?>
Tokatter
Member
Posted 1 year ago #
this is nearly it:
<ul id="categories">
<?php wp_list_categories('title_li&depth=1'); ?>
delete this, and also the </ul> that should be directly after it.
unfortunately your code snippet is a bit short.
Tokatter
Member
Posted 1 year ago #
Thank you, alchymyth, that worked! The was at the very bottom. I guess I hadn't scrolled down far enough.