WordPress Newbie (7 posts)

  1. azparis
    Posted 3 years ago #

    I've really screwed up my css - and now I've got my menu showing twice - and I only want it below the header...where the heck did I go wrong?

    I was simply trying to edit and change the "sub" menu under "services" because the words are all scrunched together when you hover. Can anyone help me with these two issues? I've spent far too many hours searching through my code to find out what I did...I had to give in and post this here! Thanks to anyone who can help!


  2. Santosh
    Posted 3 years ago #

    check this code in your website

    <div class="menu">

      <li class="page_item page-item-122 current_page_item"><li class="page_item page-item-56">About<li class="page_item page-item-12">Blog<li class="page_item page-item-8">Contact<li class="page_item page-item-4">Portfolio<li class="page_item page-item-6">Services<ul class='children'><li class="page_item page-item-163">Custom Furniture<li class="page_item page-item-147">E-Design<li class="page_item page-item-165">Interiors

    it is two times that is the reason

  3. azparis
    Posted 3 years ago #

    awesome - thank you for this info...seems to make perfect sense, and if I was still over on Blogger, I'd just go in and delete the second part of the code, but in WordPress I'm having a hard time finding this code. I've searched through every template - including header.php, style.css, and all of the others, using the "find" feature...and can't find this code anywhere. Is there an easier way to search out the entire code instead of every template individually? I know I can see my source code in Firefox, but that does me no good when I still have to search WP and all of the different templates to find this lovely code.

    Simple I'm sure, but I'm new!


  4. Santosh
    Posted 3 years ago #

    there is difference in in viewing source code in browser and viewing in WordPress themes. there you will find php variables which fetch data at run time
    you search in header.php of your theme
    which theme you are using

  5. azparis
    Posted 3 years ago #

    I totally get the difference between viewing in browser vs. in themes....but my challenge is finding the code you mentioned above - I can't find it in my theme. Here is my header.php code: I CAN see the code you mentioned in my browser code, but can't find it all in my wordpress template code. Just wanna know where the heck it is so I can delete the duplicate code to remove my nav bar!

    <!doctype html>

    <html <?php language_attributes(); ?>>
    <link href="css/adipoli.css" rel="stylesheet" type="text/css"/>
    <script src="js/jquery-1.7.1.js" type="text/javascript"></script>
    <script src="js/jquery.adipoli.min.js" type="text/javascript"></script>

    <meta charset="<?php bloginfo('charset'); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>

    <!-- CSS -->
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
    <?php ln_get_color_theme(); ?>
    <?php ln_get_responsive_css(); ?>

    <!-- Fonts -->
    <?php ln_get_fonts(); ?>

    <!-- Pingback -->
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

    <?php ln_get_favicon(); ?>

    <!-- RSS -->
    <?php ln_get_rss(); ?>

    <!-- Header Hook -->
    <?php wp_head(); ?>


    <div id="main-nav">
    <?php wp_nav_menu(array('theme_location' => 'main_nav', 'container' => '')); ?>
    <body <?php body_class();?> >

    <!-- Header -->
    <header id="main-header">
    <div class="wrap">
    <div id="logo">
    <?php ln_get_logo(); ?>
    <?php ln_get_slogan(); ?>
    <nav id="main-nav">

    // main nav
    wp_nav_menu(array('theme_location' => 'primary', 'items_wrap' => '<ul id="menu-main" class="%2$s">%3$s'));

    // mobile main nav
    wp_nav_menu(array('theme_location' => 'primary',
    'container' => false,
    'items_wrap' => '<select id="mobile-main-nav" class="responsive-menu"><option value="#">'.__(' - Navigation', 'framework').'</option> %3$s </select>',
    'walker' => new Ln_Responsive_Nav_Menu_Walker()
    <div class="clear"></div>

  6. azparis
    Posted 3 years ago #

    Oh, and I'm using a purchased theme...."unfold"....

  7. Santosh
    Posted 3 years ago #

    now it is working fine

Topic Closed

This topic has been closed to new replies.

About this Topic