I am trying to remove the default sidebar in wordpress. I tried several method's but none of them worked. I even tried editing the template files.
I am using woocommerce with the bazar theme.
just rename sidebar.php file in your theme directory and refresh the page if this not gonna help inspect the sidebar pick up the main div class name search the theme and comment the code . one of the easiest but not recommended way is to display none the div in style.css
Related
I'm trying to have a pagination on my custom Products page that is not the default one in Woocommerce.
I used Elementor to customize this page and after some research I saw that I could call a function that is already integrated in WordPress using the < paginate_links > function.
The only problem is that I have no idea where to call this function in order to have a pagination on my product page.
To be more precise, i would like to know where exactly i have to change or add my php functions, and what code should i use to get my pagination.
Normally it is in the archive.php or a version of that file name specific to your post-type. But before you go and change it, create a child theme in case you haven't done that already. In the child theme folder, you then duplicate the archive.php or similar to make it overwrite the one from the parent theme. This way you keep your version of the theme clean and updatable without losing any changes.
(For creating a child-theme you will need to create at least a style.css [with a WordPress-specific comment, you can google] and a functions.php-file that needs a bit of php-code to enqueue the child-themes scripts and styles. The code for the functions.php can also be found by a quick google search. You then just place the style.css and the functions.php into a new folder you name in the pattern [foldername of your themes name]-child. You then place this folder next to the parent-themes folder in the "/wp-content/themes/"-directory.)
And here you go for the pagination: https://codex.wordpress.org/Pagination
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.
So i made a slideshow using HTML, CSS and JS.
It's for a personal blog i'm creating, so i would like to add the slideshow into a Wordpress theme that i purchased.
I created a child theme and tried to edit the function.php file and the style.css, and although i know some PHP it's really hard to understand how the code works and where to add mine.
Basically i want to display my slideshow initially, and then the rest of the Wordpress theme with all the posts and such.
Is it possible or should i only work with the customization options of the theme, although they're limited?
Since you've gone with a child theme, may I suggest copying a page template from the parent into your child theme?
Then you can copy your code for the slideshow via the editor into your child theme's copy of page template and use said template throughout your website for whatever page you'd like without colliding with parent theme updates.
Here's a relatively simple tutorial for creating a page template:
https://www.cssigniter.com/add-custom-page-template-using-child-theme/
I want to have unique css styling in wordpress. I heard about page templates, but do they work on child theme. Is it possible to create template for my page in my child themes folder?
I am using WPbakery visual composer for my content.
Is it enough to write a page-659.php and put it to my child-theme and build my content as simple html page or are there any other solutions, to have a part content from parent theme's templates?
How to transfer a full content from parent theme for editing in my child theme page template? My parent theme uses framework, I want to skip it, and edit raw code? Is copy source code from web a good idea?
You are kinda stating the obvious... have you tried it? You seem to have the steps all figured out... and you're spot on.
I tried everything and I can't modify my wp theme as I would like to.
With this Niktitate WP theme home page I would like to use that Portfolio section as a gallery. The only problem is that at hover there are two links, one for opening the portfolio page and one for opening the image.
I would like to delete the link for the portfolio and remain just with the link which opens the specified image.
I really hope you can help, here you can download the theme files where I couldn't find the answer.
Thank you in advance !
Use a child theme (you should do this as standard practice if you are already using a parent theme like Nictitate) and see if there is a template file for the gallery in the parent theme file structure. Duplicate the template file inside your child theme directory and edit it to remove the link that is created for the permalink.
Having a quick look at the Nictitate source code for one of the carousel elements it is related to a Kopa Carousel?? Not sure. You may want to raise a forum request to the theme/framework authors/support team.