Going Crazy With Install/Initial PHP code

Forums Forums Menus Going Crazy With Install/Initial PHP code

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #456
    euromogul
    Member

    Hi guys:

    I am going crazy with install and where to put the php suckerfish code in templates. My questions are the following

    1. where do I put the actual sucker fish code in the below header.php file

    2. where in the wordpress admin do I actually add the multiple navigational links that appear under my page titles when someone rolls over it.  All I have in my wordpress admin are the options where it asks me pages, subpages, etc

    3. Is there anything else I need to know or add so that my navigational links (from pages) can look just as good or better as http://www.variety.com where the links come down, and additional levels to the right side, left side, etc

    PLEASE HELP!!!!!

    3

    [code:26qjvv5o]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">

    <meta http-equiv="Content-Type" content="<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>" />
    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    <link rel="stylesheet" href="<?php bloginfo(‘stylesheet_url’); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’); ?> RSS Feed" href="<?php bloginfo(‘rss2_url’); ?>" />
    <link rel="pingback" href="<?php bloginfo(‘pingback_url’); ?>" />
    <!–[if lte ie 7]><style type="text/css">#holder{word-wrap:break-word} #top-back, #footer .content,#subscribe .content{zoom:1}</style><![endif]–>
    <!–[if lte ie 6]><style type="text/css">#top-back,#bottom-back{display:none;}</style><![endif]–>
    </head>

    <body>

    <!– Holder –>
    <div id="holder">
        <div id="top-back"></div>
           
            <div class="con">
            <!– Header –>
            <div id="header">
            <div id="logo">
            <h1><a href="<?php echo get_option(‘home’); ?>/"><?php bloginfo(‘name’); ?></a></h1>
                    <b><?php bloginfo(‘description’); ?></b>
                </div>
               
                <!– Top Advertisement Banner –>
                <div id="top-ad-banner">
                <a href="#" title="ad"><img src="<?php bloginfo(‘template_url’);?>/images/banner_rect.jpg" alt="ad" /></a>
                </div>
               
            </div>
           
    <!– Main Navigation –>
    <div id="nav-main">
                <ul>
                <li><a href="<?php bloginfo(‘url’); ?>">Home</a></li>
                <?php wp_list_pages(‘title_li=’); ?>
                </ul>

    </div>
    [/code:26qjvv5o]

    #4207

    Changing the following:
    [code:rn030uuk]
    <div id="nav-main">
                <ul>
                <li><a href="<?php bloginfo(‘url’); ?>">Home</a></li>
                <?php wp_list_pages(‘title_li=’); ?>
                </ul>

    </div>
    [/code:rn030uuk]

    to this:

    [code:rn030uuk]
    <?php suckerfish(); ?>
    [/code:rn030uuk]

    That ‘should’ work. If it causes any problems, then post back with a link to a page with the changs made and I’ll see what I can do from there.

    [quote:rn030uuk]2. where in the wordpress admin do I actually add the multiple navigational links that appear under my page titles when someone rolls over it.  All I have in my wordpress admin are the options where it asks me pages, subpages, etc[/quote:rn030uuk]

    They’re automatically generated via the plugin. You can manually add whatever codes you want using the ‘Custom code’ option.

    [quote:rn030uuk]3. Is there anything else I need to know or add so that my navigational links (from pages) can look just as good or better as http://www.variety.com where the links come down, and additional levels to the right side, left side, etc[/quote:rn030uuk]

    The link you provided features a menu with flyouts which are already ‘flown’. Ie: They [b:rn030uuk]all[/b:rn030uuk] display when the menu is hovered over. This is not a feature of the existing CSS generators. I do this type of customisation for our premium members[/url:rn030uuk] if you are interested.

    #4208
    euromogul
    Member

    Hi I did the code change

    and here is what happened

    http://medialunch.com/

    all my categories and pages were itemized when before I just had 5 links at the top with page names that when you roll over them, I wanted the menus to come out

    please advice

    #4209

    I think you are missing the wp_head() function from your theme. Add it just before your </head> tag like this:
    [code:1aq2m0d9]
    <?php wp_head(); ?>
    </head>
    [/code:1aq2m0d9]

    #4210
    euromogul
    Member

    I think we are almost there:):)

    Allright–now if you go to medialunch.com the actual template page labels disappeared. they were white and turned to red and encapsulated within a box. Now, its just fonts and my entire page section turned to gray box—

    also, i still have no clue where in admin panel I can add the drop down menu sections, links, etc

    So here is the code-as you suggested

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
    <html xmlns="http://www.w3.org/1999/xhtml&quot; <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11"&gt;

    <meta http-equiv="Content-Type" content="<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>" />
    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    <link rel="stylesheet" href="<?php bloginfo(‘stylesheet_url’); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’); ?> RSS Feed" href="<?php bloginfo(‘rss2_url’); ?>" />
    <link rel="pingback" href="<?php bloginfo(‘pingback_url’); ?>" />
    <!–[if lte ie 7]><style type="text/css">#holder{word-wrap:break-word} #top-back, #footer .content,#subscribe .content{zoom:1}</style><![endif]–>
    <!–[if lte ie 6]><style type="text/css">#top-back,#bottom-back{display:none;}</style><![endif]–>
    <?php wp_head(); ?>
    </head>

    <body>

    <!– Holder –>
    <div id="holder">
        <div id="top-back"></div>
           
            <div class="con">
            <!– Header –>
            <div id="header">
            <div id="logo">
            <h1><a href="<?php echo get_option(‘home’); ?>/"><?php bloginfo(‘name’); ?></a></h1>
                    <b><?php bloginfo(‘description’); ?></b>
                </div>
               
                <!– Top Advertisement Banner –>
                <div id="top-ad-banner">
                <a href="#" title="ad"><img src="<?php bloginfo(‘template_url’);?>/images/banner_rect.jpg" alt="ad" /></a>
                </div>
               
            </div>
           
    <!– Main Navigation –>

    <?php suckerfish(); ?>

    #4211

    It looks like you had a bunch of plugins which weren’t correctly, not just ours. Since you addded wp_head(), a whole stack of code has been added to your pages from various plugins.

    You can change the content of the menu by going ‘Settings’ > ‘Multi-level Navigation’ in your admin panel.

    I don’t have time to check, but isn’t the colour scheme for your site exactly what you have set it for? Did it not look like that in the CSS generator? https://geek.hellyer.kiwi/suckerfish_css/

    #4212
    euromogul
    Member

    Allright–I am just really at the point of giving up here–and its not funny–I changed my template around with fresh template–so once again

    1. can you please tell me what code I have to put where to get drop down menus to work (see below)

    2. I did go to admin panel and there is nothing there that asks me for option–okay–here is your page. underneath your page please label the other pages and corresponding links that will go those pages when people click

    3. i am sorry if i am driving you crazy but I dont want to lose sleep over this

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
    <html xmlns="http://www.w3.org/1999/xhtml&quot; <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11"&gt;
    <meta http-equiv="Content-Type" content="<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>" />
    <meta name="distribution" content="global" />
    <meta name="robots" content="follow, all" /> <!– Remove This Meta Tag if your going to use wordpress SEO plugin –>
    <meta name="generator" content="WordPress <?php bloginfo(‘version’); ?>" />

    <title><?php if (is_home () ) { bloginfo(‘name’); }
    elseif ( is_category() ) { single_cat_title(); echo ‘ – ‘ ; bloginfo(‘name’); }
    elseif (is_single() ) { single_post_title();}
    elseif (is_page() ) { single_post_title();}
    else { wp_title(”,true); } ?></title>

    <link rel="stylesheet" href="<?php bloginfo(‘stylesheet_url’); ?>" type="text/css" media="screen" />

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’); ?> RSS Feed" href="<?php bloginfo(‘rss2_url’); ?>" />

    <link rel="pingback" href="<?php bloginfo(‘pingback_url’); ?>" />

    <?php wp_head(); ?>
    </head>
    <body>
    <div id="wrap" class="news">  <!– Wrap News –>
    <div id="pages"><!–pages–>
      <ul>
        <li><a href="<?php bloginfo(‘url’); ?>" title="<?php _e(‘Home’); ?>" id="home">Home</a></li><?php wp_list_pages(‘depth=1&sort_column=menu_order&title_li=’ . __(”) . ” ); ?>
      </ul>

    </div> <!–/pages–>
    <div id="header"><!–header–>
    <h1>
    <a href="<?php bloginfo(‘url’); ?>"><?php bloginfo(‘name’); ?></a>
    <small><?php bloginfo(‘description’); ?></small>
    </h1>
    </div><!–/header–>
    <div id="main"><!–main–>

    #4213

    [quote:26yar9s1]1. can you please tell me what code I have to put where to get drop down menus to work (see below)[/quote:26yar9s1]

    It looks like you find somewhere appropriate. Sorry for the delay, I had to get some last minute unexpected shoulder surgery done (it was supposed to be in December, not November until an earlier place became available).

    [quote:26yar9s1]2. I did go to admin panel and there is nothing there that asks me for option–okay–here is your page. underneath your page please label the other pages and corresponding links that will go those pages when people click[/quote:26yar9s1]

    Huh? I’m not sure what your question is. There are a bunch of options in the admin page for changing the menus

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.