Search the Community
Showing results for tags 'header.php'.
-
Hi, I am trying to get my contact form from page into header. I have been at his for days now, I can get the contact form into the header with this <?php echo do_shortcode( '[contact-form 1 "Contact form 1"]' ); ?> but can not get it to sit centrally and in front of image. This is my site, http://www.cloudchasing.co.uk/ The site style that I am trying to emulate is this one http://www.premierwindscreens.co.uk/ Pleeeease help a newcomer
-
Hello group, Apologies if this has been asked. I have a site that is generating pages like this: http://www.example.com/index.php?title_page=products_info&cPath=143&products_id=001 http://www.example.com/index.php?title_page=RFEE_SaaS_Cloud_Services http://www.example.com/index.php?title_page=customer_inquiry&src=mnu I want to create dynamic meta data in the header.php ex: <title><?php echo $pageTitle; ?></title> <meta name="description" content="<?php echo $pageDescription; ?>"> I'm new to the more advanced functions of php so my question is... where are the values for $pageTitle and $pageDescription stored if every page seems to reference index.php as the page (although there might be dynamic functionality within this page I suppose)? I could understand if the pages referenced were all different like products.php, services.php, etc. I'm looking at the URLs generated on the site and am trying to figure this out. Thanks.
- 1 reply
-
- title tags
- header.php
-
(and 1 more)
Tagged with:
-
Good afternoon everyone, I am 24 and I just started my first website (yay me, right) and I had a small question in regards to PHP. I am editing a Wordpress template (don't worry i've already made a child theme and copied the header.php), but I want to add (embed) an HTML form (I am using MailChimp as my newsletter & mailing service) into my header.php I am unsure which way to go about this problem and I wanted some excellent advice from the pros (you all!). After researching the problem I have concluded there are two ways to accomplish this (remember I am a newbie and there are probably more ways to accomplish this task, ha ha). 1. Use the PHP Command - Echo to write the code into the header.php but I feel that would be a lot of Echo commands (and it may not be because I don't know very much about PHP). 2. Create a new function.php file that houses my "Newsletter Form" and use PHP to call that function (and now that I am typing this, it probably isn't a "function" file and its named something else) into my header.php and have it display that way. This is my website: www.hulkapps.com The "Newsletter Form" should appear under the site description ("We Make College Easier"). Thank you in advance for all responses, and taking the time to read my post. Have a great day, Ben @ HulkApps