Maracas1970
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageOK
so i have taken all the code out of the header-home.php & header.php files that was not needed, and only included the parts i want to include for the separate pages in the site.
For example i have included the home navigation code in the header.home.php file, and the homepage image.
And the code i want to use in the rest of the site in the header.php file, ie, the main site navigation and a banner link/image.
I have taken the meta out of the index.php as if i understand correctly that`s needed in the header and nowhere else.
so to reiterate. this is my index.php: https://pastebin.com/6MDfMabe
this is my header( the one i wish to use for the rest of the site but not on the home page: https://pastebin.com/pMmWajUV
And finally this is my header-home.php file: the one i want to use only for the homepage: https://pastebin.com/p5FspqXV
Please tell me i`m not going mad. I am still not getting the other files i have created to be seen within the wordpress appearance/editor either. And still cannot create custom template from the pages menu, simply isnt the option there..
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageSure they are in my wp-content/themes/bpr/folder
This is what i keep imagining, that they are simply not there.
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageOh dear, i thought i was reasonably good at following instructions..
I have done all the things you said to my knowledge. I will include where i am with header-home and my index.php now. Just incase it`s something obvious.
the index: https://pastebin.com/Mb0rtJNd
the header-home: https://pastebin.com/wkKJ3gGn
Im going for a cup of tea. ??
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepagei just have the same commenting as the header.php which is
<?php
/**
* @package WordPress
* @subpackage BPR
*/
?>Do i need to include something else in here, this is the same comment that is on all my pages.
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageAlso when i go to my appearance/editor within WordPress i only see three files. index, footer and header, why dont the other files i created and uploaded to the same directory show here eg: my footer and header home files.
Also dont have the option in add pages to create new template page..
Thanks
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageI don’t have a sidebar for the homepage, was only intending to use this for the blog page, is this OK? Or will it cause problems?
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageThanks for all the time/help you put in so far by the way.
As you can see, i am only just beginning with PHP & WordPress.
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageDo i need all this in my index page:
<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’); ?>” />
<?php wp_head(); ?>because when i added that before the end head tags, it seemed to work even when i exclude the get_header(‘home’); its really bizarre..
When it`s excluded just with the get_header(‘home’); included, all the styling disappears. Until i put it back in.
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageI guess while i
m at it, here
s a link to the website..Need to get rid of the blue icons and text at the top.
It just doesnt seem to be calling the header-home.php for some reason.Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageHi there.
Well i thought it was working, but when i checked the header.php file i noticed i`d taken the code out of there aswell as the header-home.php file, when i added it back to the header the same thing happened, unwanted navigation intended for the rest of my pages appeared.
I did everything you said, the header-home file is in the theme folder as is the footer-home.php which incidentally seems to work.
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageProgress! Got rid of the header, And got rid of the text.
Hopefully can repeat for footer afterwards, and be on my way…
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageok so when i do that all the styling goes, and i`m left with get_header(‘home’); at the top left of the page along with all the unstyled links..
Do i have to copy over all the index.php code into the header-home.php and footer-home.php files? And leave nothing else.
And delete reference to get footer and get header on the index.php.
And just add get_header(‘home’); at the top of the index.php?I
m sorry, i
m really confused. Maybe something is lost in translation here, or maybe i`m just tired..Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageDid you mean i needed the need the wp_head() and wp_footer() in the index.php or in the header and footer files, as they are on the header and footer files, just not in the index.php now i have removed them.
Warm regards
Kark
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageOK. Removing these got me:
Parse error: syntax error, unexpected ‘<‘ in /var/www/html/wp-content/themes/BPR/index.php on line 13
Do i need to change anything in header and footer.php before i remove these tags please?
Thankyou
Forum: Fixing WordPress
In reply to: Can not remove header and footer from homepageThank you Peter_L
I realise that i need the opening and closing page tags, in order to have a fully functional document.
The thing is i just don’t want the header and footer on the homepage. I need to find a way to remove these from that landing page, do i wrap the header and footer.php code in a conditional to say such as, if this is the homepage leave out header and footer?
I am truly stumped, and have a pulsating brain headache ;>