• Hello,
    after designing my page i noticed a link that says, “SELECT A CATEGORY’at the top of my page.
    I have no idea how to remove this and why it is even there.

    any help on how to remove this would be great.

Viewing 13 replies - 1 through 13 (of 13 total)
  • a url would be great

    Thread Starter nhbmark1

    (@nhbmark1)

    You can remove the following link “SELECT A CATEGORY’ from header.php file. Just find the “SELECT A CATEGORY’ in the header.php file and then try to remove it.

    (NOTE: create a backup of header.php file before attempting to edit the codes)

    Thanks

    remove this type of code wp_list_categories from header.php file

    Thread Starter nhbmark1

    (@nhbmark1)

    I looked in the themes folder and found header.php

    i cannot find wp_list_categories

    nor can i find select a category

    Am i looking in the wrong place?

    THanks!

    can you give your header.php file?

    Thread Starter nhbmark1

    (@nhbmark1)

    [post code to pastebin.com]

    First keep a backup of header.php file. Then replace with my code.

    [post code to pastebin.com]
    Thread Starter nhbmark1

    (@nhbmark1)

    Hello,

    I tried that…doesn’t seem to have fixed it

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    <head profile="https://gmpg.org/xfn/11">
    <title>
    <?php if ( is_home() ) { ?>
    <?php bloginfo('description'); ?>
     |
    <?php bloginfo('name'); ?>
    <?php } ?>
    <?php if ( is_search() ) { ?>
    Search Results |
    <?php bloginfo('name'); ?>
    <?php } ?>
    <?php if ( is_author() ) { ?>
    Author Archives |
    <?php bloginfo('name'); ?>
    <?php } ?>
    <?php if ( is_single() ) { ?>
    <?php wp_title(''); ?>
    <?php } ?>
    <?php if ( is_page() ) { ?>
    <?php wp_title(''); ?>
    <?php } ?>
    <?php if ( is_category() ) { ?>
    <?php single_cat_title(); ?>
     |
    <?php bloginfo('name'); ?>
    <?php } ?>
    <?php if ( is_month() ) { ?>
    <?php the_time('F'); ?>
     |
    <?php bloginfo('name'); ?>
    <?php } ?>
    <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?>
    <?php bloginfo('name'); ?>
     | Tag Archive |
    <?php single_tag_title("", true); } } ?>
    </title>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <?php if (is_home()) { ?>
    <?php if ( get_option('bizzthemes_meta_description') <> "" ) { ?>
    <meta name="description" content="<?php echo stripslashes(get_option('bizzthemes_meta_description')); ?>" />
    <?php } ?>
    <?php if ( get_option('bizzthemes_meta_keywords') <> "" ) { ?>
    <meta name="keywords" content="<?php echo stripslashes(get_option('bizzthemes_meta_keywords')); ?>" />
    <?php } ?>
    <?php if ( get_option('bizzthemes_meta_author') <> "" ) { ?>
    <meta name="author" content="<?php echo stripslashes(get_option('bizzthemes_meta_author')); ?>" />
    <?php } ?>
    <?php } ?>
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
    <?php if ( get_option('bizzthemes_customcss') ) { ?>
    <link href="<?php bloginfo('template_directory'); ?>/custom.css" rel="stylesheet" type="text/css">
    <?php } ?>
    <?php if ( get_option('bizzthemes_favicon') <> "" ) { ?>
    <link rel="icon" type="image/png" href="<?php echo get_option('bizzthemes_favicon'); ?>" />
    <?php } ?>
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option('bizzthemes_feedburner_url') <> "" ) { echo get_option('bizzthemes_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/library/js/hover.js"></script>
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <!--[if lt IE 7]>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/library/js/pngfix.js"></script>
    <![endif]-->
    <?php if ( get_option('bizzthemes_scripts_header') <> "" ) { echo stripslashes(get_option('bizzthemes_scripts_header')); } ?>
    <?php wp_head(); ?>
    </head>
    
    <body>
    
    <div id="header" class="clearfix">
    
    <div class="container_12 ">
    
    <div class="header-in">
    <div id="logo-spot">
    <?php if ( get_option('bizzthemes_show_blog_title') ) { ?>
    <div class="blog-title">/">
    <?php bloginfo('name'); ?>
    </div>
    <div class="blog-description">
    <?php bloginfo('description'); ?>
    </div>
    <?php } else { ?>
    <h1 class="logo"> " title="<?php bloginfo('name'); ?>"> <img src="<?php if ( get_option('bizzthemes_logo_url') <> "" ) { echo get_option('bizzthemes_logo_url'); } else { echo get_bloginfo('template_directory').'/images/logo-trans.png'; } ?>" alt="<?php bloginfo('name'); ?>" /> </h1>
    <!--/logo-->
    <?php } ?>
    </div>
    <!--/logo-spot-->
    </div>
    <div id="nav">
    <?php if ( !get_option('bizzthemes_buynow_hide')) { ?>
    
    <?php if ( get_option('bizzthemes_buynow_button_url') != "") { ?>
    
    <div class="buynow"> ">Buynow </div>
    
    <?php } ?>
    
    <?php } ?>
    
    <?php
    global $wpdb;
    $blogcatname = get_option('bizzthemes_blogcategory');
    $catid = $wpdb->get_var("SELECT term_ID FROM $wpdb->terms WHERE name = '$blogcatname'");
    
    ?>
    <ul class="page-menu">
    <li class="hometab <?php if ( is_home() ) { ?>current_page_item <?php } ?>">/"><?php echo get_option('bizzthemes_home_name'); ?></li>
    
    <?php if ( get_option('bizzthemes_blogcategory') <> "" ) { ?>
    <li <?php if ( is_category() || is_search() || is_single() || is_tag() || is_search() || is_archive() ) { ?> class="current_page_item" <?php } ?>>/?cat=<?php echo $catid; ?>" title="<?php echo $blogcatname; ?>"><?php echo $blogcatname; ?></li>
    <?php } ?>
    
    <!--/page-menu-->
    </div>
    <!--/top_menu-->
    
    </div>
    </div>
    <!-- header #end -->

    Try it once more.

    [leaving this code for thread clarity – but use pastebin.com from now on]

    Thread Starter nhbmark1

    (@nhbmark1)

    ?? nope that dodnt do it either..

    removing this bit should do it

    $blogcatname = get_option('bizzthemes_blogcategory');
    $catid = $wpdb->get_var("SELECT term_ID FROM $wpdb->terms WHERE name = '$blogcatname'");

    Thread Starter nhbmark1

    (@nhbmark1)

    That didnt seem to work either…

    to be sure we are on the same page…this is in the theme folder that Im using ..

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Remove "SELECT A CATEGORY" from page’ is closed to new replies.