In my project, I'm using WordPress for blog pages and I just wanted to change the appearance of the header and footer of WordPress theme and I don't want to use any plugin for creating header and footer,
can anyone tell me where I can edit the header and footer code.
/wp-content/themes/YOUR__THEME/header.php , footer.php
It's easy. You can edit the footer.php and header.php on the theme folder with the HTML/PHP code that you want.
Note: The theme folder is in /wp-content/themes/{theme_name} folder.
Related
I am creating a Wordpress custom theme, and I've been having issues with my woocommerce template rendering. Firstly, not all of the pages are showing up (some of them are reverting to the index.php and page.php files). Secondly, for the pages that are showing up (the single product page, the archive products page), the css is not being applied. I have tried everything suggested on the docs (hooks), but I have failed. Here is a link to my github for you to see the file structure.
https://github.com/naderae/elbe-collections
possible issues wuth my code:
my code is not written in the standard wordpress way. I only have three pages so far, index.php, page-about.php, and page-team.php, which work fine. page.php and single.php are empty. thus, my site consists of 2 pages, and index.php.
I've been struggling with this for 2 days, and would really appreciate some guidance of hoe to get me back on track. Cheers
Below is a list of some basic theme templates must preset in theme, more about this in details click here.
index.php
style.css
header.php
single.php
page.php
category.php
archive.php
404.php
I would recommend you to start with some default WordPress theme like twentyseventeen theme or other. These themes will have all basic functionality of WordPress. Check functions.php in the theme folder to customize/add functionality.
for more details about Template Hierarchy click here
Customize WooCommerce
Template structure & Overriding templates via a theme - link
Customizing WooCommerce - link
To overwrite woocommerce css you need to add a woocommerce folder to your theme. And go from there.
Woocommerce will also always use their own templates so the easiest way to change the layout is to use a child-plugin from woocommerce.
I have a website build with Codeigniter and I need to have a blog. It should be a WordPress so what I decided to do is to add "blog" in my .htaccess and install a WordPress in myweb.com/blog
It works perfect.
Now, I need to change my theme header and footer from the one that I have already in my web.
How can I do it?
I have the view at views/common/header.php, but obviously, I can not load it like this in template/header.php
<?php $this->load->view('common/header');?>
If I'm not wrong, I should add any code at header.php in my template folder. So, the question is, what should I change or add on it??
Thanks a lot!
UPDATE
I think there should be a helper I could load in codeigniter in order to call that functions on Wordpress
How can I do it?
You directly cannot call CI view in wordpress file. Inorder to make changes to wordpress header and footer you will need to modify header.php and footer.php file under wordpress theme (wp-content/themes/your_theme_folder).
Also make sure that you do not modify wordpress default theme directly as any changes to default theme would be lost during wordpress updates.
Best practice is to create child theme and then make your changes over there
https://codex.wordpress.org/Child_Themes , here the guide to create child theme.
I've a theme that i converted from HTML into WP everything work nice but sidebar is not in it place! showing Widgets in the down!
Widgets are ok and in the right place in single.php but in index.php and page.php are not.
I already tried with style.css file but still not solved. what do you think? what should I do?
http://s14.postimg.org/ul2401b4h/Fire_Shot_Screen_Capture_004_robert_s_Blog.png
Thanks.
I have created a custom PHP page name privicy pollicy with name privacy.php.
How would i link the page in footer so that when some1 click on privacy link the page open.
I have call the header and footer in this page.
How to do this.
Thanks
In the wp-content/themes/<your_theme> directory for your WordPress install, there should be a file called footer.php. This is the file that generates your footer output.
To edit this file, open your WordPress dashboard and click on the Appearances tab in the navigation bar. Under "Appearances", there will be a link called Editor that will open the theme editor for your current theme. Once in the editor, select Footer (footer.php) in the list of templates that appears on the right hand side of the editor.
You can modify the HTML for your footer here, and add a link to your privacy page.
Privacy policy
You have to put the link in the footer.php of your wordpress theme. You can edit it using the default theme editor
That is completely dependent upon your theme. If your theme doesn't support editing the footer text, you just have to edit your theme's footer.php file and add your information there.
The file is located in a place similar to this:
/wordpress/wp-content/themes/<theme>/footer.php
Go To Appearance -> Editor -> footer.php and edit it Simple
Well You can do it from cpanel also public_html -> wordpress -> wp content -> themes -> -> footer.php
I have created a custom PHP page name privicy pollicy with name privacy.php.
How would i link the page in footer so that when some1 click on privacy link the page open.
I have call the header and footer in this page.
How to do this.
Thanks
In the wp-content/themes/<your_theme> directory for your WordPress install, there should be a file called footer.php. This is the file that generates your footer output.
To edit this file, open your WordPress dashboard and click on the Appearances tab in the navigation bar. Under "Appearances", there will be a link called Editor that will open the theme editor for your current theme. Once in the editor, select Footer (footer.php) in the list of templates that appears on the right hand side of the editor.
You can modify the HTML for your footer here, and add a link to your privacy page.
Privacy policy
You have to put the link in the footer.php of your wordpress theme. You can edit it using the default theme editor
That is completely dependent upon your theme. If your theme doesn't support editing the footer text, you just have to edit your theme's footer.php file and add your information there.
The file is located in a place similar to this:
/wordpress/wp-content/themes/<theme>/footer.php
Go To Appearance -> Editor -> footer.php and edit it Simple
Well You can do it from cpanel also public_html -> wordpress -> wp content -> themes -> -> footer.php