martynj
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Right sidebarThank you!! ??
I tried the 2 links you put here but they didnt work to how I would of liked, so I tried Ax-Sidebar, and that did the trick!
Thanks for the help!
Forum: Fixing WordPress
In reply to: Right sidebarIve been looking into this recently after a short break from this, but I still cant figure the best way to go around my original question. The one way that ive seen is to make separate side bar files, but when im looking at 50 different pages that I would like different links on the right sidebar, this will be quite a nightmare! Also by looking around, there is no way of modifying the right sidebar withing the admin page..
Can someone possibly help me out, and point me in the right direction?
Many thanks!
Forum: Themes and Templates
In reply to: Navigation buttons and content backgroundive used that bit of code before but couldnt work out how to change the color of the actual buttons by doing it that way
Forum: Themes and Templates
In reply to: Navigation buttons and content backgroundThere is another thing now.. Been trying to change the colors of the navigation buttons to go with the background colour thats set.. So say the home page is green, i would like the button to be green, the contact page is red, the button to be red, if that makes sense. Ive managed to change the color of the buttons, but cant make it look like its pressed down (same effect when you hover over it). Any ideas why its not picking up the current page code?
Forum: Themes and Templates
In reply to: Navigation buttons and content backgroundGot it! Thank you very much for the help! Can now finally get this website finished ??
Forum: Themes and Templates
In reply to: Navigation buttons and content backgroundand ive only put the contact page in just to test it ??
Forum: Themes and Templates
In reply to: Navigation buttons and content backgroundIve made the changes but the content background is still not showing. Ive left the changes on the website so you can see whats happening.
This is the header.php after the new code:
<head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); echo '/'.$css.'.css'; ?>" type="text/css" media="screen" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> </head> <body> <?php $css = 'blue'; if(is_page('contact')) { $css = 'orange'; } ?> <div id="page-wrap"> <div id="inside"> <div class="headerimg"></div> <div id="nav"> <ul id="menu"> <li<?php if (is_page('contact')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/contact"><span>Contact</span></a></li> <li<?php if (is_page('booking')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/booking"><span>Booking</span></a></li> <li<?php if (is_page('gallery')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/gallery"><span>Gallery</span></a></li> <li<?php if (is_page('system-specs')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/system-specs"><span>System Specs</span></a></li> <li<?php if (is_page('events')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/events"><span>Events</span></a></li> <li<?php if (is_page('packages')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/packages"><span>Packages</span></a></li> <li<?php if (is_home()) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/news"><span>News</span></a></li> <li<?php if (is_page('home')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>"><span>Home</span></a></li> </ul> </div> <div id="spacer"></div>
Forum: Themes and Templates
In reply to: Navigation buttons and content backgroundIve just gave that a try and it didnt want to work, just removed the content background instead lol. I put the stylesheet reference code between the header tags in the header.php file. My nav buttons already have a ‘if’ function on them, so i added the ‘if(is_page(‘pagename1’)) { $css = ‘red’; }’ on the same line.
Here’s my header.php code:
<head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> </head> <body> <div id="page-wrap"> <div id="inside"> <div class="headerimg"></div> <div id="nav"> <ul id="menu"> <li<?php if (is_page('contact')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/contact"><span>Contact</span></a></li> <li<?php if (is_page('booking')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/booking"><span>Booking</span></a></li> <li<?php if (is_page('gallery')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/gallery"><span>Gallery</span></a></li> <li<?php if (is_page('system-specs')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/system-specs"><span>System Specs</span></a></li> <li<?php if (is_page('events')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/events"><span>Events</span></a></li> <li<?php if (is_page('packages')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/packages"><span>Packages</span></a></li> <li<?php if (is_home()) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>/news"><span>News</span></a></li> <li<?php if (is_page('home')) { echo " id=\"current\"";}?>><a href="<?php bloginfo('url') ?>"><span>Home</span></a></li> </ul> </div> <div id="spacer"></div>
And heres my style.css:
body { font-size: 62.5%; background: url(images/stripe.png) repeat; margin:0; padding:0; } div.headerimg { background:url("images/header.png"); margin-left:auto; margin-right:auto; height:250px; width:1024px; } img { border: none; } p, li { font: 1.2em/1.8em Tahoma, sans-serif; margin-bottom: 10px; color:#FFFFFF; } h1 { font: 2.0em Tahoma, sans-serif; color: white; height: 0px; } h2 { font: 1.8em Tahoma, sans-serif; color: black; margin-bottom: 10px; } ul { margin-left: 25px; } img { border: none; } #page-wrap { min-width: 780px; max-width: 1240px; margin: 10px auto; } #page-wrap #inside { margin: 10px 10px 0px 10px; padding-top: 10px; padding-bottom: 10px; } #spacer { height:37px; } #nav { float:left; width:100%; font-size:93%; line-height:normal; } #menu { padding-right: 10px; } #menu ul { margin:0; padding:10px 10px 0 50px; list-style:none; } #menu li { display:inline; margin:0; padding:0; } #menu a { float:right; background:url(images/tableft.gif) no-repeat left top; margin:0; padding:0 0 0 4px; text-decoration:none; } #menu a span { float:left; display:block; background:url(images/tabright.gif) no-repeat right top; padding:5px 15px 4px 6px; color:#FFF; } #menu a:hover { background-position:0% -42px; } #menu a:hover span { color:#FFF; background-position:100% -42px; } #menu #current a { background-position:0% -42px; } #menu #current a span { background-position:100% -42px; } #main-content { border: solid #4888B8 1px; background-color:#25569A; padding-left: 20px; padding-top: 20px; padding-bottom: 20px; padding-right: 20px; } #footer { text-align: center; padding-top: 10px; padding-bottom: 10px; color: white; }
The #main-content is actually on the index.php with the wordpress loop inside it.