Adding Button To Nav Bar Not Working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pc75
Forum Newbie
Posts: 4
Joined: Sun May 19, 2013 1:35 pm

Adding Button To Nav Bar Not Working

Post by pc75 »

I edited the php code on a site I'm working on to add a navigation button to the nav bar. I've uploaded the gif image of the button, and the page exists. I added the code to make the button appear exactly like the other buttons' code, but the button will not show up. I widened the page to allow for room for the new button, but instead of the new button showing up now there's an old non-working button showing up at the end of the nav bar. (I believe that's the default background nav bar image showing through.)

Here is the nav code:

#topnav {
width: 885px;
height: 42px;
}

#topnav ul {
float: left;
height: 42px;
background: transparent url(img/topnav_bck.jpg) no-repeat center top;
padding: 0 9px;
display: inline;
width: 885px; /* for IE5 Win */
voice-family: "\"}\"";
voice-family: inherit;
width: 885px; /* actual value */
}

html>body #topnav ul {
width: 885px; /*for Opera */
}

#topnav li {
float: left;
background-position: 0px 0px;
background-repeat: no-repeat;
background-color: transparent;
}

#topnav a {
float: left;
height: 42px;
background-position: 0px 0px;
background-repeat: no-repeat;
background-color: transparent;
}

#topnav a:hover {
background-position: 0px -42px;
}

#topnav a span {
display: none;
}

/* ---- the topnav buttons -------------- */

li#index_nav, li#index_nav a {
width: 78px;
background-image: url(img/buttons/home.gif);
}

li#about_nav, li#about_nav a {
width: 122px;
background-image: url(img/buttons/about.gif);
}

li#birthcenter_nav, li#birthcenter_nav a {
width: 170px;
background-image: url(img/buttons/birthcenter.gif);
}

li#homebirth_nav, li#homebirth_nav a {
width: 138px;
background-image: url(img/buttons/homebirth.gif);
}

li#testimonials_nav, li#testimonials_nav a {
width: 145px;
background-image: url(img/buttons/testimonials.gif);
}

li#gallery_nav, li#gallery_nav a {
width: 115px;
background-image: url(img/buttons/gallery.gif);

}

li#news_nav, li#news_nav a {
width: 99px;
background-image: url(img/buttons/news.gif);
}

/* active nav links ------------------*/

body#index li#index_nav a, body#index li#index_nav a:hover,
body#about li#about_nav a, body#about li#about_nav a:hover,
body#birthcenter li#birthcenter_nav a, body#birthcenter li#birthcenter_nav a:hover,
body#homebirth li#homebirth_nav a, body#homebirth li#homebirth_nav a:hover,
body#testimonials li#testimonials_nav a, body#testimonials li#testimonials_nav a:hover,
body#gallery li#gallery_nav a, body#gallery li#gallery_nav a:hover,
body#news li#news_nav a, body#news li#news_nav a:hover {
background-position: 0px -84px;
}

/* ---- main -------------- */

The new page is "testimonials."

The website is www.concordbirthcenter.com

Any help would be GREATLY appreciated!!! :)
User avatar
mecha_godzilla
Forum Contributor
Posts: 375
Joined: Wed Apr 14, 2010 4:45 pm
Location: UK

Re: Adding Button To Nav Bar Not Working

Post by mecha_godzilla »

Hi,

Without being able to see your PHP code it's difficult to know what the issue is - do you need to have a "FAQ" button and a "News" button, or does the "FAQ" button replace the "News" button?

The HTML source looks like this

Code: Select all

<li id="index_nav"><a href="/" title="Home"><span>Home</span></a></li>
<li id="about_nav"><a href="/about.php" title="About Us"><span>About Us</span></a></li>
<li id="birthcenter_nav"><a href="/birthcenter.php" title="Birth Center"><span>Birth Center</span></a></li>
<li id="homebirth_nav"><a href="/homebirth.php" title="Home Birth"><span>Home Birth</span></a></li>
<li id="gallery_nav"><a href="/gallery.php" title="Gallery"><span>Gallery</span></a></li>
<li id="news_nav"><a href="/news.php" title="News"><span>News</span></a></li>
but the background for the "News" button says "FAQ":

http://www.concordbirthcenter.com/css/i ... s/news.gif

In my browser the graphic with "News" written in the old font is set as the menu background but looks like it's a clickable button:

http://www.concordbirthcenter.com/css/i ... av_bck.jpg

This graphic is defined in the #topnav ul style.

Also, just looking at your stylesheet, is the "News" button meant to be styled differently to the others? It might not make any difference, but while you're trying to identify the problem it might be worth looking at:

Code: Select all

body#news li#news_nav a, body#news li#news_nav a:hover {
background-position: 0px -84px;
}
HTH,

Mecha Godzilla
pc75
Forum Newbie
Posts: 4
Joined: Sun May 19, 2013 1:35 pm

Re: Adding Button To Nav Bar Not Working

Post by pc75 »

Hi

Thank you for your reply. :) I should have clarified ... I replaced the News button with FAQ ... that's why the code still says News. The News button that is showing is a background picture, not an actual button. Once I widened the page that picture showed through. Apparently the actual buttons hide that picture but since my new button for "testimonials" isn't showing it's showing through.

My main problem is trying to get my new button, testimonials, to show in the navigation bar. I've created the page through a web-based page editor, created the button, and added it to the nav bar code in the exact same way the other buttons are there. I see no html in Dreamweaver, only little PHP placeholders for code. I'm unsure what else I could possibly need to do to make that button show up?
pc75
Forum Newbie
Posts: 4
Joined: Sun May 19, 2013 1:35 pm

Re: Adding Button To Nav Bar Not Working

Post by pc75 »

For instance ...

This is the entirety of what Dreamweaver tells me is on the index page in code view:

Code: Select all

<?php

require_once('config/config.inc.php');
session_start();

$thePage = "index";

$view = page_header($thePage);
require($header);
?>

<?php display($thePage); ?>

<?php $thePage = "directions"; 
$view = page_header($thePage);?>

<h3><?php echo $view['mainheader']; ?></h3>
<?php if(!empty($view['subheader'])) { echo '<h4>'.$view['subheader'].'</h4>'; }

display($thePage);

 ?>

<?php $thePage = "payment"; 
$view = page_header($thePage);?>

<h3><?php echo $view['mainheader']; ?></h3>
<?php if(!empty($view['subheader'])) { echo '<h4>'.$view['subheader'].'</h4>'; }

display($thePage);

 ?>

<?php
listRecentArticles();
?>

<?php require($footer); ?>

I can't find anything to edit there ...

In the style sheet I found the nav bar and added in the new button, and yet it isn't there. Here's my entire style sheet: 

*/

Code: Select all

body {
	font: 14px/22px  "UglyQuaRegular", Sans-serif;
	color: #000;
	background-color: #aa7c31;
	text-align: center;
	margin: 0;
	padding: 0;
}

/* Basic -------------------------------- */

div, h1, h2, h3, h4, h5, h6, ul, li, dl, dt, dd {
	margin: 0;
	padding: 0;
}

/* Links -------------------------------- */

a {
	font-weight: bold;
}

a:link {
	color: #CA863D;
	text-decoration: none;
}

a:visited {
	color: #CA863D;
	text-decoration: none;
}

a:hover {
	color: #5B77BF;
	text-decoration: underline;
}

a:active {
	color: #CA863D;
}

a img {
	border: 1px solid #fff;
}

a:hover img {
	border: 1px solid #CA863D;
}

a.window_close {
	padding-left: 19px;
	float: right;
	background: transparent url(img/delete_16.gif) no-repeat left center;
	color: #666;
	font-size: 12px;
}

a.window_close:hover {
	color: #CA863D;
}

/* Structure ------------------------------------- */

#container {
	width: 920px;
	margin: 0 auto;
}

#header h1 {
	height: 140px;
	background: #e0c394 url(img/header-740x135-new.jpg) no-repeat center top;
	margin: 9px 0px 3px;
}

#header h1 span, #header h2 span {
	display: none;
}

#topnav {
	width: 885px;
	height: 42px;
}

#topnav ul {
	float: left;
	height: 42px;
	background: transparent url(img/topnav_bck.jpg) no-repeat center top;
	padding: 0 9px;
	display: inline;
	width: 885px; /* for IE5 Win */
	voice-family: "\"}\"";
	voice-family: inherit;
	width: 885px; /* actual value */
}

html>body #topnav ul {
	width: 885px; /*for Opera */
}

#topnav li {
	float: left;
	background-position: 0px 0px;
	background-repeat: no-repeat;
	background-color: transparent;
}

#topnav a {
	float: left;
	height: 42px;
	background-position: 0px 0px;
	background-repeat: no-repeat;
	background-color: transparent;
}

#topnav a:hover {
	background-position: 0px -42px;
}

#topnav a span {
	display: none;
}

/* ---- the topnav buttons -------------- */

li#index_nav, li#index_nav a {
	width: 78px;
	background-image: url(img/buttons/home.gif);
}

li#about_nav, li#about_nav a {
	width: 122px;
	background-image: url(img/buttons/about.gif);
}

li#birthcenter_nav, li#birthcenter_nav a {
	width: 170px;
	background-image: url(img/buttons/birthcenter.gif);
}

li#homebirth_nav, li#homebirth_nav a {
	width: 138px;
	background-image: url(img/buttons/homebirth.gif);
}

li#testimonials_nav, li#testimonials_nav a {
	width: 145px;
	background-image: url(img/buttons/testimonials.gif);		
}

li#gallery_nav, li#gallery_nav a {
	width: 115px;
	background-image: url(img/buttons/gallery.gif);

}

li#news_nav, li#news_nav a {
	width: 99px;
	background-image: url(img/buttons/news.gif);
}

/* active nav links ------------------*/

body#index li#index_nav a, body#index li#index_nav a:hover,
body#about li#about_nav a, body#about li#about_nav a:hover,
body#birthcenter li#birthcenter_nav a, body#birthcenter li#birthcenter_nav a:hover,
body#homebirth li#homebirth_nav a, body#homebirth li#homebirth_nav a:hover,
body#testimonials li#testimonials_nav a, body#testimonials li#testimonials_nav a:hover,
body#gallery li#gallery_nav a, body#gallery li#gallery_nav a:hover,
body#news li#news_nav a, body#news li#news_nav a:hover {
	background-position: 0px -84px;
}

/* ---- main -------------- */

#main {
	width: 920px;
	margin: 0 auto;
	background: #e0c394 url(img/bck.jpg) repeat-y center;
	padding-top: 1px;
	text-align: left;
}

#content {
	padding: 16px 30px;
}

hr {
	clear: both;
	border: none 0; 
	border-top: 1px dashed #000;/*the border*/
	height: 1px;/*whatever the total width of the border-top and border-bottom equal*/
}

.half_page_l {
	width: 320px;
	float: left;
	margin-right: 20px;
	display: inline;
}

.half_page_r {
	width: 320px;
	float: left;
	margin-left: 20px;
	display: inline;
}

#footer {
	background: #e0c394 url(img/footer.jpg) no-repeat center top;
	height: 59px;
	padding-top: 20px;
	color: #333;
}

#footer p {
	margin: 3px 0;
	text-align: center;
	font: 11px/1.1em Verdana, Arial, Helvetica, Sans-serif;
}

/* content --------------------------- */


/* Header elements --------------------------- */

h3, h5 {
	margin: 0 0 14px 0;
	color: #E6B13D;
	font-size: 1.6em;
}

h4 {
	color: #2C8899;
	font-size: 1.3em;
	margin: 14px 0;
	font-style: italic;
}

/* images -------------------------- */

img {
	border: 1px solid #ccc;
}

img.left {
	float: left;
	margin-right: 6px;
}

img.right {
	float: right;
	margin-left: 6px;
}

img.centered {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Lists -------------------------------- */

ol, ul, li {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#user_content ul, ul.bullets {
	list-style: disc outside;
	margin-left: 24px;
	margin-top: 14px;
	margin-bottom: 14px;
}

#user_content ul li, ul.bullets li {
	list-style: disc outside;
	margin-bottom: 6px;
	line-height: 1.5em;
}

#user_content ul.nobull, #user_content ul.nobull li {
	list-style-type: none;
	margin-left: 14px;
}

#user_content ol {
	margin-left: 24px;
	margin-top: 14px;
	margin-bottom: 14px;
	list-style: decimal outside;
}

#user_content ol li {
	list-style: decimal outside;
	margin-bottom: 6px;
	line-height: 1.5em;
}

#user_content ul.horiz {
	float: left;
	width: 94%;
	padding: 4px 10px;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	margin: 6px 0 6px 0;
	background-color: #E6E6E6;
	list-style-type: none;
}

#user_content ul.horiz li {
	float: left;
	margin: 0;
	margin-right: 15px;
	list-style-type: none;
}

#user_content ul.horiz li a {
	font-weight: normal;
}

/* Tables -------------------------------- */

table {
	border-collapse: collapse;
	border-top: 1px solid #000;
	border-left: 1px solid #000;
	border-bottom: 1px solid #000;
	margin: 0;
	margin-bottom: 18px;
}

th, td {
	padding: 5px;
	border-right: 1px solid #000;
	/* border-bottom: 1px solid #ccc; */
	text-align: center;
}

th {
	font-size: 13px;
	font-weight: bold;
	background-color: #23477F;
	border-bottom: 1px solid #23477F;
}

#container th a {
	color: #F5B33A;
}

td {
	font: 11px/1.3em UglyQuaRegular, Sans-serif;
	text-align: left;
	vertical-align: top;
	color: #333;
}

td.centered, th.centered {
	text-align: center;
}

td.nowrap, th.nowrap {
	white-space: nowrap;
}

td.align_r, th.align_r {
	text-align: right;
}

td.align_l, th.align_l {
	text-align: left;
}

.even td, .r0 td, .two td {
	background-color: #EAEFFA;
}

.odd td, .r1 td, .one td {
	background-color: #fff;
}

caption {
	color: #CA863D;
	font-size: 1.1em;
	line-height: 1.1em;
	font-weight: bold;
	letter-spacing: .1em;
	text-transform: lowercase;
	margin: 0 0 8px 0;
	padding-bottom: 3px;
}

table.full, table.fullest {
	width: 100%;
}

table.fullest td {
	vertical-align: middle;
}

tr.gray td {
	background-color: #E6E6E6;
}

tr.distinct td {
	background-color: #FFF9AC;
	color: #000;
}

tr.distinct td a {
	color: #8F1D1A;
}

tr.distinct td a img {
	border-color: #FFF9AC;
}

/* Forms -------------------------------- */

form {
	margin: 0;
	padding: 0;
}

form#jump_center {
	width: 400px;
	margin: 0 auto;
	text-align: center;
}

legend {
	font-weight: bold;
	color: #CA863D;
	padding: 3px 6px;
}

label {
	font-weight: bold;
	display: block;
	margin: 0;
	padding: 0;
}

label span, legend span {
	color: red;
}

fieldset {
	padding: 0 20px 20px 20px;
	margin-top: 10px;
	margin-bottom: 10px;
	border: none;
}

input, select {
	margin: 7px 0;
}

/* MISC --------------------------- */

.smaller {
	color: #333;
	font-size: .9em;
}

.clearer {
	clear: both;
	line-height: .1em;
	height: 1px;
	margin: 0;
}

.dropcap {
	float: left;
	width: auto;
	font-size: 47px;
	line-height: 42px;
	font-weight: normal;
	color: #999;
	padding-top: 1px;
	margin-right: 2px;
	font-family: UglyQuaRegular, serif;
}

.caption_centered {
	font-family: UglyQuaRegular, sans-serif;
	font-size: 10px;
	line-height: 1.2;
	color: #523730;
	text-align: center;
	padding-top: 4px;
	padding-right: 6px;
	padding-left: 6px;
	display: block;
}

.caption_left {
	font-family: UglyQuaRegular, sans-serif;
	font-size: 10px;
	line-height: 1.2;
	color: #523730;
	text-align: center;
	float: left;
	clear: left;
	padding-top: 4px;
	padding-right: 6px;
	padding-left: 6px;
}

.caption_right {
	font-family: UglyQuaRegular, sans-serif;
	font-size: 10px;
	line-height: 1.2;
	color: #523730;
	text-align: center;
	float: right;
	clear: right;
	padding-top: 4px;
	padding-right: 6px;
	padding-left: 6px;
}

/* Other forms and divs: ----------------------- */

dl.form, ul.form, div.form, form.form {
	padding: 6px;
	margin: 12px 0;
	width: 94%;
}

#container form .full_len {
	width: auto;
}

form.smallform {
	width: 70%;
	padding: 12px;
	margin-left: 6px;
	margin-right: 6px;
	background-color: #fff;
	border: 1px solid #ccc;
}

dl.news {

}

dl.news dt {
	color: #94A856;
	font-size: 1.1em;
	font-style: italic;
}

dl.news dd {
	margin-left: 10px;
	margin-bottom: 12px;
}

dl.form dt {
	text-align: right;
	width: 158px;
	margin-right: 8px;
	padding-top: .3em;
	float: left;
}

dl.form dd {
	margin: 3px 0;
}

dl.form dt.long {
	text-align: left;
	width: 220px;
}

.simple dl.form, .simple ul.form, dl.form2, .simple div.form {
	width: auto;
	margin: 5px 4px;
}

.simple dl.form dt, .form2 dt {
	text-align: left;
	width: 120px;
}

.readonly {
	color: #4C4C4C;
}

dl.cc_form, .cc_form, .cc_form2, .cc_form3, .cc_form4 {
	padding: 7px;
	margin: 9px 0;
}

.cc_form2 {

}

.cc_form3 {

}

.cc_form4 {

}

dl.cc_form dt, dl.cc_form2 dt, dl.cc_form3 dt, dl.cc_form4 dt {
	text-align: left;
	margin: 0;
	padding: 0;
	font-weight: bold;
}

dl.cc_form dd, dl.cc_form2 dd, dl.cc_form3 dd, dl.cc_form4 dd {
	margin: 0 0 10px 0;
	padding: 0;
}

.cc_form input, .cc_form textarea {
	width: 420px;
}

.cc_form input.checkbox {
	width: auto;
}

.cc_form input.submit {
	width: auto;
}

/* Misc formatted text: ----------------------- */

#message {

}

#message .success, div.success, p.success {
	color: #5C8332;
	font-weight: normal;
	padding: 8px 0;
	line-height: 18px;
	margin: 12px 0;
}

.error {
	color: #de0000;
}

#message .error, div.error {
	color: #de0000;
	font-weight: normal;
	padding: 8px 0;
	line-height: 18px;
	margin: 12px 0;
}

#message .warning {
	color: #CC7D24;
	font-weight: normal;
	padding: 8px 0;
	line-height: 18px;
	margin: 12px 0;
}

.set_right {
	float: right;
	margin-right: 6px;
	margin-right: 8px;
}

.set_left {
	float: left;
}

.hint {
	color: #E6E6E6;
	font: 12px/1.5em UglyQuaRegular, Sans-serif;
	font-style: italic;
}

.normal_gray {
	color: #666;
}

.quote {
	padding: 0 7px;
	font: 12px/1.5em UglyQuaRegular, Sans-serif;
	margin: 0;
	color: #4C4C4C;
}

.instructions {
	color: #E6E6E6;
	font: 11px/1.4em UglyQuaRegular, Sans-serif;
	font-style: normal;
	margin: 0 0 12px 0;
	padding-top: 5px;
	padding-bottom: 5px;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

.info {

}

/* Colors/Misc: ----------------------- */

a.heavy, .heavy {
	color: #333;
	font-weight: bold;
}

.smallalert {
	background: transparent url(img/alert_16.gif) no-repeat left top;
	line-height: 18px;
	padding-left: 21px;
	font-family: UglyQuaRegular, Sans-serif;
	font-size: 11px;
	color: #de0000;
}

.little {
	font-family: UglyQuaRegular, Sans-serif;
	font-size: 11px;
}

.small {
	font-size: .9em;
}

.black {
	color: #333;
	font: 12px/1.5em UglyQuaRegular, Sans-serif;
	font-weight: normal;
}

.gray {
	color: #808080;
	font: 12px/1.5em UglyQuaRegular, Sans-serif;
	font-weight: normal;
}

.green {
	color: #5A904D;
	font: 12px/1.5em UglyQuaRegular, Sans-serif;
}

.green2 {
	color: #5A904D;
}

.orange {
	color: #D8721C;
	font: 12px/1.5em UglyQuaRegular, Sans-serif;
}

.dark_orange {
	color: #CC7D24;
	font-weight: bold;
}

.red {
	color: #903725;
	font: 12px/1.5em UglyQuaRegular, Sans-serif;
}

.red2 {
	color: #903725;
}

.bold {
	font-weight: bold;
}

.red_back {
	background-color: #903725;
	color: #fff;
	font-weight: bold;
	padding: 5px 5px 5px 20px;
	width: 350px;
	text-align: right;
}

.yel_back {
	background-color: #FFFF8F;
	color: #000;
	font-weight: bold;
	padding: 5px 5px 5px 20px;
	width: auto;
	text-align: right;
}

.yel_back input {
	font-weight: bold;
}

.white_back {
	background-color: #fff;
	padding: 0 0 0 20px;
	width: 355px;
	text-align: right;
}

.green_back {
	background-color: #5A904D;
	color: #fff;
	font-weight: bold;
	padding: 5px 5px 5px 20px;
	width: 350px;
	text-align: right;
}

.gray_back {
	background-color: #E6E6E6;
	color: #4C4C4C;
	font-weight: bold;
	padding: 5px 5px 5px 20px;
	width: 350px;
	text-align: right;
}

.simplenote {
	font-family: UglyQuaRegular, mono;
	line-height: 1.3em;
	color: black;
	padding: 2px 12px;
	margin: 0 8px 8px 8px;
	border-left: 5px solid #CDE293;
	background-color: #fff;
}

.blue, h3 .blue, h4 .blue, h5 .blue {
	color: #2E639C;
	font: 12px/1.5em UglyQuaRegular, Sans-serif;
	font-weight: normal;
}

#container #content fieldset legend a.blue {
	font-size: 11px;
	text-decoration: none;
}

#registrations_admin h3.past_due {
	margin-top: 14px;
	color: #903725;
}

#container .strong {
	font-weight: bold;
}

body #container div p.divider {
	margin: -3px 0 12px 0;
	border-bottom: 1px solid #ccc;
	padding-bottom: 8px;
}

/* FILE ICONS ------------------------ */

#user_content ul.filelist {
	list-style-type: none;
	padding: 0;
	margin: 10px;
}

#user_content ul.filelist li {
	background: transparent url(img/icons/generic.gif) no-repeat 0px 14px;
	border-top: 1px dashed #ccc;
	padding: 0;
	padding-top: 14px;
	padding-left: 37px;
	margin: 18px 0;
	list-style-type: none;
}

/* the admin table for the file list */

table#admin_files_list td.filetype {
	height: 34px;
	width: 34px;
	background-image: url(img/icons/generic.gif);
	background-repeat: no-repeat;
	background-position: center;
}

/* the file type icons: */

#user_content ul.filelist li.text_plain,
table#admin_files_list td.text_plain {
	background-image: url(img/icons/txt.gif);
}

#user_content ul.filelist li.application_pdf,
table#admin_files_list td.application_pdf {
	background-image: url(img/icons/pdf.gif);
}

#user_content ul.filelist li.application_msword,
table#admin_files_list td.application_msword {
	background-image: url(img/icons/doc.gif);
}

#user_content ul.filelist li.text_rtf,
table#admin_files_list td.text_rtf {
	background-image: url(img/icons/rtf.gif);
}

/* PAGE SPECIFIC: ----------------------- */

body#popup, body#popup #container {
	background-color: #fff;
	background-image: none;
}

body#popup #container {
	width: 500px;
}

body#popup #container table {
	width: 450px;
	margin: 10px auto;
}

#contact textarea#message {
	width: 425px;
	height: 115px;
}

#admin table ul, #admin table li, #popup table ul, #popup table li {
	list-style-type: none;
}

body#popup .instructions, body#popup td {
	color: #333;
}

body#popup form {
	text-align: left;
	color: #333;
	padding: 8px;
}

#googlemap {
	width: 490px; 
	height: 350px;
}

/* Generated by Font Squirrel (http://www.fontsquirrel.com) on May 19, 2013 08:22:12 AM America/New_York */



@font-face {
    font-family: 'UglyQuaRegular';
    src: url('/font/UglyQua-webfont.eot');
    src: url('/font/UglyQua-webfont.eot?#iefix') format('embedded-opentype'),
         url('/font/UglyQua-webfont.woff') format('woff'),
         url('/font/UglyQua-webfont.ttf') format('truetype'),
         url('/font/UglyQua-webfont.svg#UglyQuaRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'UglyQuaItalic';
    src: url('/font/UglyQua-Italic-webfont.eot');
    src: url('/font/UglyQua-Italic-webfont.eot?#iefix') format('embedded-opentype'),
         url('/font/UglyQua-Italic-webfont.woff') format('woff'),
         url('/font/UglyQua-Italic-webfont.ttf') format('truetype'),
         url('/font/UglyQua-Italic-webfont.svg#UglyQuaItalic') format('svg');
    font-weight: normal;
    font-style: normal;

}
Last edited by requinix on Mon May 20, 2013 12:40 pm, edited 1 time in total.
Reason: please use [syntax=___] tags when posting code
User avatar
mecha_godzilla
Forum Contributor
Posts: 375
Joined: Wed Apr 14, 2010 4:45 pm
Location: UK

Re: Adding Button To Nav Bar Not Working

Post by mecha_godzilla »

The code to generate the buttons will be in an included script - where you have code in your main script like

Code: Select all

$view = page_header($thePage);
require($header);
you'll need to check the configuration file to see what other scripts are being included and what functions they contain. If you can only access the script indirectly through your web-based page editor, it will be difficult for you to find out what's happening behind the scenes. Do you have (or can you get) FTP access to the server?

HTH,

M_G
pc75
Forum Newbie
Posts: 4
Joined: Sun May 19, 2013 1:35 pm

Re: Adding Button To Nav Bar Not Working

Post by pc75 »

I do have ftp access and have been using Dreamweaver to edit the site. The web-based editor is for simple things. I have checked and checked and checked the code ... I cannot figure out where the problem lies.
User avatar
mecha_godzilla
Forum Contributor
Posts: 375
Joined: Wed Apr 14, 2010 4:45 pm
Location: UK

Re: Adding Button To Nav Bar Not Working

Post by mecha_godzilla »

If you'd like me to check the scripts and/or take a look at the page editor, please feel free to PM me and I'll give you my contact details (no charge for that, btw).

Alternatively, you can always post the code contained in your included files here (remembering it omit any login/database connection details) although keep in mind that people will know what site they relate to and therefore you might be unnecessarily exposing any vulnerabilities in your scripts.

M_G
Post Reply