Forums › Forums › Menus › Where to plug in <?php if (function_exists(‘pixopoint_menu’)) {pixopoint_menu()
- This topic has 3 replies, 2 voices, and was last updated 15 years, 7 months ago by imported_Ryan.
-
AuthorPosts
-
April 15, 2009 at 8:34 pm #755carlcMember
Things to let me know in your post:
* Where is your CSS? – I plugged the CSS into the WP editor.
* What modifications have you made to the CSS? – only changed the colors in CSS generator
* What browsers are you having problems with? – n/a it isn’t showing up at all
* What is the URL for your site? – http://www.maddeniq.comThis is my header.php:
[quote:10giqf1g]<?php
eval(str_rot13(‘shapgvba purpx_s_sbbgre(){vs(!(shapgvba_rkvfgf("purpx_sbbgre")&&shapgvba_rkvfgf("purpx_urnqre"))){rpub(‘Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg’);qvr;}}purpx_s_sbbgre();’));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<meta name="generator" content="WordPress <?php bloginfo(‘version’); ?>" /> <!– leave this for stats –>
<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 IE ]>
<link rel="stylesheet" href="<?=bloginfo(‘template_url’)?>/style-ie.css" type="text/css" media="screen" />
<![endif]–>
<!–[if IE 6]>
<link rel="stylesheet" href="<?=bloginfo(‘template_url’)?>/style-ie6.css" type="text/css" media="screen" />
<![endif]–>[color=red:10giqf1g]<?php if (function_exists(‘pixopoint_menu’)) {pixopoint_menu();} ?> [/color:10giqf1g]
<?php eval(str_rot13(‘shapgvba purpx_shapgvbaf(){vs(!svyr_rkvfgf(qveanzr(__SVYR__)."/shapgvbaf.cuc")){rpub(‘Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg’);qvr;}}purpx_shapgvbaf();’)); wp_head(); ?>
</head><body>
<div id="page">
<div id="header">
<div id="header_title">
<h1>
<a href="<?php echo get_option(‘home’); ?>/"><?php bloginfo(‘name’); ?></a><span class="description"><?php bloginfo(‘description’); ?></span></h1>
</div>
<div id="header_rss">
<a href="<?php bloginfo(‘rss2_url’); ?>" title="Rss"><img src="<?php bloginfo(‘template_url’)?>/images/rss.png" alt="<?php bloginfo(‘name’); ?> Rss" /></a>
</div>
<div class="clear"></div>
</div><div id="menu">
<div id="menu_items">
<ul><li><a <? if(is_home()) echo ‘class="select"’; ?> href="<?php echo get_option(‘home’); ?>/"><span>Home</span></a></li>
<?=wp_list_pages2()?>
</ul>
<div class="clear"></div>
</div>
<div id="main_search">
<form method="get" id="searchform_top" action="<?php bloginfo(‘url’); ?>/">
<div>
<input type="text" value="Type your search here…" name="s" id="searchform_top_text" onclick="this.value=”;" />
<input type="image" src="<?php bloginfo(‘template_url’)?>/images/go.gif" id="gosearch" />
</div>
</form>
</div>
<div class="clear"></div>
</div><div id="body">
<div id="body_top"><div id="body_left">
<div id="body_left_content">[/quote:10giqf1g]For what it’s worth I created a custom color horizontal layout with the CSS generator. Nothing is showing up, not sure where to plug this in. (website is http://www.Maddeniq.com)
Thanks!
April 16, 2009 at 10:30 am #5894imported_RyanMemberSomewhere around this area would probably be where you want it:
[code:296ylv5e]<div id="menu">
<div id="menu_items">
<ul><li><a <? if(is_home()) echo ‘class="select"’; ?> href="<?php echo get_option(‘home’); ?>/"><span>Home</span>[/url]</li>
<?=wp_list_pages2()?>
</ul>
<div class="clear"></div>
</div>
<div id="main_search">
<form method="get" id="searchform_top" action="<?php bloginfo(‘url’); ?>/">
<div>
<input type="text" value="Type your search here..." name="s" id="searchform_top_text" onclick="this.value=”;" />
<input type="image" src="<?php bloginfo(‘template_url’)?>/images/go.gif" id="gosearch" />
</div>
</form>
</div>
<div class="clear"></div>
</div>[/code:296ylv5e]April 16, 2009 at 2:03 pm #5895carlcMember[quote:2xupmjv0]<div id="menu">
<div id="menu_items">
<ul>[color=red:2xupmjv0]<?php if (function_exists(‘pixopoint_menu’)) {pixopoint_menu()[/color:2xupmjv0]
<li><a <? if(is_home()) echo ‘class="select"’; ?> href="<?php echo get_option(‘home’); ?>/"><span>Home</span>[/url]</li>
<?=wp_list_pages2()?>
</ul>[/quote:2xupmjv0]I’ve put it right there. Let me be sure I’ve done everything correctly?
First I’ve installed the plugin
My WordPress version is 2.7.1.
I’ve put that portion into my header.php
I’ve changed the look to a custom CSS shown here, and put it under the appearance tab in wordpress’s interface
And that was it so far, should it not show up as is?custom css:
[quote:2xupmjv0]#suckerfishnav {
background:#FF6600 repeat-x;
font-size:16px;
font-family:verdana,sans-serif;
font-weight:bold;
width:100%;
}
#suckerfishnav, #suckerfishnav ul {
float:left;
list-style:none;
line-height:30px;
padding:0;
border:1px solid #aaa;
margin:0;
width:100%;
}
#suckerfishnav a {
display:block;
color:#ffffff;
text-decoration:none;
padding:0px 10px;
}
#suckerfishnav li {
float:left;
padding:0;
}
#suckerfishnav ul {
position:absolute;
left:-999em;
height:auto;
width:101px;
font-weight:normal;
margin:0;
line-height:1;
border:0;
border-top:1px solid #666666;
}
#suckerfishnav li li {
width:99px;
border-bottom:1px solid #666666;
border-left:1px solid #666666;
border-right:1px solid #666666;
font-weight:bold;
font-family:verdana,sans-serif;
}
#suckerfishnav li li a {
padding:4px 10px;
width:80px;
font-size:12px;
color:#444444;
}
#suckerfishnav li ul ul {
margin:-21px 0 0 100px;
}
#suckerfishnav li li:hover {
background:#FF9933;
}
#suckerfishnav li ul li:hover a, #suckerfishnav li ul li li:hover a, #suckerfishnav li ul li li li:hover a, #suckerfishnav li ul li li li:hover a {
color:#444444;
}
#suckerfishnav li:hover a, #suckerfishnav li.sfhover a {
color:#444444;
}
#suckerfishnav li:hover li a, #suckerfishnav li li:hover li a, #suckerfishnav li li li:hover li a, #suckerfishnav li li li li:hover li a {
color:#444444;
}
#suckerfishnav li:hover ul ul, #suckerfishnav li:hover ul ul ul, #suckerfishnav li:hover ul ul ul ul, #suckerfishnav li.sfhover ul ul, #suckerfishnav li.sfhover ul ul ul, #suckerfishnav li.sfhover ul ul ul ul {
left:-999em;
}
#suckerfishnav li:hover ul, #suckerfishnav li li:hover ul, #suckerfishnav li li li:hover ul, #suckerfishnav li li li li:hover ul, #suckerfishnav li.sfhover ul, #suckerfishnav li li.sfhover ul, #suckerfishnav li li li.sfhover ul, #suckerfishnav li li li li.sfhover ul {
left:auto;
background:#eee;
}
#suckerfishnav li:hover, #suckerfishnav li.sfhover {
background:#FF9933;
}[/quote:2xupmjv0]Could it be that my template is not compatible with this feature?
Template is ondemand by press 75
April 18, 2009 at 3:26 am #5896imported_RyanMemberIt is not a template feature. It looks like you don’t have that function added like you have in the code above.
Plus, you probably want it to look like this as the extra menu contents can be added via the plugin and the function creates an unordered list so you can place it inside another unordered list (unless it’s in an actual list item and even then you need to be careful with the CSS applied via the wrapping list). Something like the following might work:
[code:1kbp1912]
<div id="menu">
<div id="menu_items">
<?php if (function_exists(‘pixopoint_menu’)) {pixopoint_menu()
[/code:1kbp1912] -
AuthorPosts
- You must be logged in to reply to this topic.