Jump to content

carter90

Members
  • Posts

    11
  • Joined

  • Last visited

carter90's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I am having trouble with a font that I have added to a wordpress site. For some reason whatever I try with font-weight an font-style etc. The font is filling in. I have attached a couple of screenshots so you know what I mean. The css I put in for the nav bar is below. Any ideas? #nav ul li, #nav ul li a, #nav .megamenu ul.sub-menu li.menu-item-custom-content p { font-family:Glowworm; font-weight:normal; font-style:normal; }
  2. Sorry for the late reply. Yes that is what I thought. My form code looks ok as far as I know though: <form action="http:///contact.php" method="post"> <div align="left"> <p><span class="style3">Your name</span>:<span style="text-align: right"></span><br> <input name="cf_name" type="text" style="width:160px" value="" size="25"> <br> <span class="style3">Your e-mail</span>:<br> <input name="cf_email" type="text" style="width:160px" size="25"> </p> <p><br><input name="submit" type="submit" value="Send"> <span style="text-align: right"></span></p> </div> </form> The contact.php is in the correct place as well otherwise I wouldn't get the emails coming through just no values which is very annoying.
  3. Thanks for the reply, I have just tried this and it has come back with NULL so i'm assuming I have definitely gone wrong somewhere?
  4. Hi, I am having a problem with this simple form and I can't see why the email is not showing the name and email fields. The email goes through fine and is recieved but just does not show the name and email field. Any thoughts? Thanks <?php $field_name = $_POST['cf_name']; $field_email = $_POST['cf_email']; $mail_to = ''; $subject = 'Email List Subscription from Toycraft visitor - '.$field_name; $body_message = 'From: '.$field_name."\n"; $body_message .= 'E-mail: '.$field_email."\n"; $headers = 'From: '.$field_name."\r\n"; $headers .= 'Reply-To: '.$field_email."\r\n"; $mail_status = mail($mail_to, $subject, $body_message, $headers); if ($mail_status) { ?> <script language="javascript" type="text/javascript"> alert('Thank you for your subscription.'); window.location = 'index.php'; </script> <?php } else { ?> <script language="javascript" type="text/javascript"> alert('Message failed. Please, send an email to studio@'); window.location = 'index.php'; </script> <?php } ?>
  5. $options = array( 'title' => __( 'Slider', 'yit' ), 'options' => array( '' => __( 'Default', 'yit' ), 'none' => __( 'None', 'yit' ) ) + yit_get_sliders(), 'desc' => __( 'Select the slider that you want to use in the page.', 'yit' ), ); yit_add_option_metabox( 'yit-page-settings', __( 'Header', 'yit' ), '_slider_name', 'select', $options ); yit_metaboxes_sep( 'yit-page-settings', __( 'Header', 'yit' ) ); $options = array( 'title' => __( 'Use static image', 'yit' ), 'desc' => __( 'Set YES if you want a static header, instead of the slider.', 'yit' ), 'std' => 0 ); yit_add_option_metabox( 'yit-page-settings', __( 'Header', 'yit' ), '_use_static_image', 'onoff', $options ); $options = array( 'title' => __( 'Static image', 'yit' ), 'desc' => __( 'Upload here the image to use for the static header, only if you have set to YES the option above.', 'yit' ), 'std' => '' ); yit_add_option_metabox( 'yit-page-settings', __( 'Header', 'yit' ), '_static_image', 'upload', $options ); $options = array( 'title' => __( 'Static image Link', 'yit' ), 'desc' => __( 'The URL where the fixed image will link.', 'yit' ), 'std' => '' ); ); yit_add_option_metabox( 'yit-page-settings', __( 'Header', 'yit' ), '_static_image_link', 'text', $options ); $options = array( 'title' => __( 'Static image target', 'yit' ), 'desc' => __( 'How to open the link of the static image.', 'yit' ), 'options' => array( '_self' => __( 'Default', 'yit' ), '_parent' => __( 'Parent frameset', 'yit' ), '_top' => __( 'Full body of the window', 'yit' ), '_blank' => __( 'In a new window', 'yit' ), ), ); yit_add_option_metabox( 'yit-page-settings', __( 'Header', 'yit' ), '_static_image_target', 'select', $options ); Not sure what is wrong with it as far as I can see. Anyone got an idea?
  6. Thanks for the advice. I have changed h1 and h4 to position:relative; and margin-top:0px; which didn't change anything unfortunately. I have pasted below the CSS: body, p, li, address, dd, blockquote { } h1, h2, h3, h4, h5, h6, p, dl { margin:0.8em 0 0.8em; } a, a:hover { text-decoration:none; outline: none !important; } h1, h2, h3, h4, h5, h6 { font-weight: 800; } h1, h1 a { font-size:22px; line-height: 22px; } h2, h2 a { font-size:20px; line-height: 20px; } h3, h3 a { font-size:17px; line-height: 17px; } h4, h4 a { font-size:16px; line-height: 16px; } h5, h5 a { font-size:15px; line-height: 15px; } h6, h6 a { font-size:14px; line-height: 14px; } .content ul { margin-left:20px; list-style:square } .content ol { margin-left:40px; } i, em { font-style:italic; } strong { font-weight:bold; } .content blockquote { background:url('./core/assets/images/cite.png') no-repeat 45px 25px; padding:35px; } .content blockquote p { padding-left: 45px; } .border-line { height:1px; background:#CFCFCF; width:100%; clear:both; margin:1.2em 0; } dt { font-weight:bold; } mark { background: transparent !important; } a { color: #9A6614; } a:hover { color: #815207; } .sidebar a { color: #575858; } .sidebar a:hover { color: #9A6614; } a:hover .title-highlight { color: #6C6D03; } .line { border-top:1px solid #CFCFCF } .space { height:30px } body .last, body .widget-last { margin-right:0; padding-right:0 !important; border-right:0; } body .last-row { margin-bottom:0; } .for-mobile { display:none !important; } .not-logged-in .not__logged_in { display:none !important; } p, li, address, dd, blockquote, td, th, a, body, h1, h2, h3, h4, h5, h6, p, dl, ul, ol, .paragraph-links a, #respond input, #respond textarea, #respond p label, #search_mini { color: #666767; font-family: 'Play', 'Verdana', 'Arial', sans-serif; font-size: 12px; font-weight: normal; line-height: 20px; } code, pre { background-color: #E8EBEC; border: 1px dotted #CFCFCF; color: #333333; font: 13px/18px Consolas,"Courier New",Courier,monospace; padding: 0 5px; } pre { margin-bottom: 10px; margin-top: 10px; } .margin-top { margin-top: 10px; } .margin-bottom { margin-bottom: 20px; } /* ===== SIDEBAR LAYOUT ===== */ .sidebar-left .sidebar, .sidebar-right .content { float: left; } .sidebar-right .sidebar, .sidebar-left .content { float: right; } /* ===== HEADINGS ===== */ h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-size: 12px; } h1 span.highlight, h2 span.highlight, h3 span.highlight, h4 span.highlight, h5 span.highlight, h6 span.highlight { color: #c27d05; background-color: transparent !important; } #primary .content .hentry > h1:first-child, #primary .content .hentry > h2:first-child, #primary .content .hentry > h3:first-child, #primary .content .hentry > h4:first-child, #primary .content .hentry > h5:first-child, #primary .content .hentry > h6:first-child, #primary .content .hentry > p:first-child { /*margin-top: 0px;*/ } /* ===== MAIN LAYOUT ===== */ body { position: relative; } body.responsive { overflow-x: hidden; } .boxed #wrapper { padding: 0px 20px; background: #fff; position:relative; } .boxed #header, .boxed #topbar, .boxed #footer, .boxed #copyright { margin-right: -20px; ; } .stretched #wrapper.container { width: 100%; } .boxed .wrapper-border { position: absolute; width: 100%; height: 100%; border: 8px solid rgba(0, 0, 0, 0.04); left: -8px; top: -8px; border-radius:8px; -moz-border-radius:8px; -webkit-border-radius:8px; z-index:-1; } /* ===== TOPBAR ===== */ #topbar { padding: 10px 0; text-transform: uppercase; padding-bottom: 0 } #topbar .row { margin-bottom: 4px } #topbar-left { float: left; } #topbar-right { float: right; } #topbar-left div.widget, #topbar-right div.widget { display: inline-block; vertical-align: top; margin-right: 15px } #topbar .widget.widget_nav_menu { margin: 0 } #topbar .widget_nav_menu ul { margin: 0 } #topbar .widget_nav_menu ul > li:first-child { margin-left: 0 } #topbar .widget_nav_menu ul > li { float: left; border: none !important; margin-left: 10px } #topbar .widget_nav_menu ul > li a { border: none !important; padding: 0; background: none } .border { border: 1px solid #e0dfdf; height: 1px; padding-bottom: 2px; border-width: 0 0 1px 0 } .borderstrong { border-width: 0 0 4px 0 !important; } .borderpadding { margin-bottom: 3px } /* ===== HEADER ===== */ #header { position: relative; /*margin-bottom:21px;*/ /*height: 105px;*/ } /* === LOGO */ #logo-headersidebar-container { position:relative; min-height: 125px } #logo { text-transform: uppercase; padding:10px 0 5px 0; width: 257px; margin-left: 18px; margin-top: 5px; float: left; } .align-left #logo{ text-align:left; } .align-right #logo{ text-align:right; } #logo #textual { display: inline-block; margin-top: 20px; margin-bottom: 12px; line-height: 1em; } #header #tagline { margin: 0 0 0 0; text-transform: none; font-size: 15px; } #header #tagline.multiline { margin-top: 10px } #header #logo #tagline span { color: #E5F99A } #header #logo #textual, #header #logo #textual span { font-size: 40px; } /* === */ #header-sidebar { float: right; max-width: 342px; } #header-sidebar.double { max-width:684px; } #header-sidebar .widget, #header-sidebar .widget-last { display:inline-block; vertical-align: top; width: 170px; border: 1px solid #E0DFDF; height: 48px; margin-top: -1px !important; ; } #header-sidebar .widget.text-image { padding-top: 15px; margin-top: -1px !important; padding-bottom: 6px } #header-sidebar .widget.text-image, #header-sidebar .widget.text-image h3, #header-sidebar .widget.text-image p, #header-sidebar .widget.text-image a, #header-sidebar .widget_text.widget { font-family:'Oswald', sans-serif; font-size:14px; color:#8d8d8d; font-weight: normal; margin: 0; } #header-sidebar .widget.text-image h3, #header-sidebar .widget.text-image p { float: left; display: block; } #header-sidebar .widget.text-image h3 { margin-top: 6px; color:#373736; } #header-sidebar .widget.text-image .text-image { float:left; padding-right:5px; padding-left:10px; } #header-sidebar .widget_text.widget { width: 341px; height: 40px; padding-top: 24px; text-align: center; font-size: 18px; padding-bottom:5px; } #header-sidebar .widget_text.widget h3 { display: inline-block; margin-right: 5px; } #header-sidebar .widget_text div { margin: 0px -2px 0px -1px; float: none !important; display: inline-block; line-height: 23px } #header-sidebar a.socials-square, #header-sidebar a.socials-square-small, #header-sidebar a.socials-default, #header-sidebar a.socials-default-small, #header-sidebar a.fade-socials, #header-sidebar a.fade-socials-small { vertical-align:top; }
  7. I have been looking around to try and figure out why there is a big gap at the top of this slider and I really don't know how to get rid of it. <h1><span style="color: #3b853f;">WELCOME TO INSURED CARS</span></h1> One low cost, monthly payment with insurance included. Protecting the public from high premiums...... <div class="space" style="height: 5px;"></div> <h4><img class="alignnone size-large wp-image-1352" alt="revolution-tick" src="http://insuredcarsonline.com/wp-content/uploads/2013/01/revolution-tick1.jpg" width="19" height="20" /><span style="color: #000000;"> INSURANCE INCLUDED</span></h4> <h4><img class="alignnone size-large wp-image-1352" alt="revolution-tick" src="http://.com/wp-content/uploads/2013/01/revolution-tick1.jpg" width="19" height="20" /><span style="color: #000000;"> LOW INITIAL PAYMENT</span></h4> <h4><img class="alignnone size-large wp-image-1352" alt="revolution-tick" src="http://.com/wp-content/uploads/2013/01/revolution-tick1.jpg" width="19" height="20" /><span style="color: #000000;"> ROAD TAX AND SERVICING INCLUDED</span></h4> <h4><img class="alignnone size-large wp-image-1352" alt="revolution-tick" src="http://.com/wp-content/uploads/2013/01/revolution-tick1.jpg" width="19" height="20" /><span style="color: #000000;"> CURFEW FREE SAFE DRIVING AID</span></h4> <h4><img class="alignnone size-large wp-image-1352" alt="revolution-tick" src="http://.com/wp-content/uploads/2013/01/revolution-tick1.jpg" width="19" height="20" /><span style="color: #000000;"> COMPLETE DATA CONFIDENTIALITY</span></h4> <h4><img class="alignnone size-large wp-image-1352" alt="revolution-tick" src="http://.com/wp-content/uploads/2013/01/revolution-tick1.jpg" width="19" height="20" /><span style="color: #000000;"> GUARANTEED FIXED PRICE INSURANCE</span></h4> <h4><img class="alignnone size-large wp-image-1352" alt="revolution-tick" src="http://.com/wp-content/uploads/2013/01/revolution-tick1.jpg" width="19" height="20" /><span style="color: #000000;"> ACCIDENT PROOF POLICY</span></h4>
  8. You Sir are a legend. So if I was to display two rows I would just stick 'while' back in.
  9. Thanks for that I have added the code in below the elseif statements: I wasn't sure what put instead of while as it comes up with a syntax error if I just take it out. while ($row = mysql_fetch_assoc($query)) Unfortunately now it is coming up with an error: Warning: mysql_fetch_assoc() expects parameter 1 to be resource, object given in search.php on line 9 Sorry if I am being an idiot.
  10. Sorry I was messing around trying to see if it would work with just if statements forgot I had changed it.
  11. I have this code below which is linked to my mysql database. For some reason it is only showing the price for the if part of the statement? <html> <body> <?php $mysqli = new mysqli("localhost", "root", "", "insuredcars"); if ($_POST['formcar'] == '1' && $_POST['formage'] == '18' && $_POST['formNCD'] == '0' && $_POST['formPoints'] == '0' ) { $query = $mysqli->query("SELECT * FROM insurance WHERE insuranceid = '1'"); while($row = mysqli_fetch_assoc($query)) { echo "<tr>"; echo "<td> The price for insurance will be " . $row['insuranceprice'] . "</td>"; echo "</tr>"; } echo "</table>"; } elseif ($_POST['formcar'] == '2' && $_POST['formage'] == '18' && $_POST['formNCD'] == '0' && $_POST['formPoints'] == '0' ) { $query = $mysqli->query("SELECT * FROM insurance WHERE insuranceid = '2'"); echo "<tr>"; echo "<td> The price for insurance will be " . $row['insuranceprice'] . "</td>"; echo "</tr>"; echo "</table>"; } elseif ($_POST['formcar'] == '3' && $_POST['formage'] == '18' && $_POST['formNCD'] == '0' && $_POST['formPoints'] == '0' ) { $query = $mysqli->query("SELECT * FROM insurance WHERE insuranceid = '5'"); echo "<tr>"; echo "<td> The price for insurance will be " . $row['insuranceprice'] . "</td>"; echo "</tr>"; echo "</table>"; } elseif ($_POST['formcar'] == '4' && $_POST['formage'] == '18' && $_POST['formNCD'] == '0' && $_POST['formPoints'] == '0' ) { $query = $mysqli->query("SELECT * FROM insurance WHERE insuranceid = '6'"); echo "<tr>"; echo "<td> The price for insurance will be " . $row['insuranceprice'] . "</td>"; echo "</tr>"; echo "</table>"; } ?> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.