Display Woocommerce widgets on normal pages - woocommerce

Is it possible to display woocommerce widgets on pages that are not part of Woocommerce?

You can probably find a plugin to do this, but if you want to get your hands a little dirty you can do a bit of theme development work (you might want to do it as a child theme first though)
You can create a template page https://developer.wordpress.org/themes/template-files-section/page-template-files/
and then include a wigitised area on that page
https://codex.wordpress.org/Widgetizing_Themes

Related

How to create such buttons with Wordpress?

I'm very new to WordPress (tbh, it's my first time working with it). And I need to make a website as my school project using CMS. Creating pages with templates is alright, but I have a lot of troubles with buttons. I found this website, and I can see it using WordPress. I need such buttons as on this page https://movie-chooser.co.ua/random-movie-2/ (they appear when you hover over the image). Is this a default option for buttons in WordPress? If not, is there a plugin for this or what is the way to add them on my images?
First Install Elementor plugin https://wordpress.org/plugins/elementor/
and go to page when you add button and open page with elementor
and do drag and drop any element like button, space, text editor etc.
You have several ways to achieve that:
Overwritting Wordpress CSS
Using a plugin
Create your own shortcode
1 - Overwriting Wordpress CSS
If you manage to display all the elements using wordpress template, and your only issue is to display buttons over the images, then it should only be a matter of CSS
2 - Using a plugin
The idea here is to find a plugin that help you to create/display the informations you need (maybe you'll need to add functionnality to basic post though custom fields or using a custom post type).
Once you find the right plugin, again if the plugin dosen't directly offert some settings on the design then you'll have to overwrite the plugin's CSS rules to display the elements as you want.
3 - Create your own shortcode
If you're new to Wordpress I wouldn't recommend this method as it is kind of advanced, unless you're comfortable with PHP/HTML/CSS (optionaly JS).
This is the more flexible solution as you can basically control anything, but it will require you to understand some core concepts of Wordpress like WP Query and how custom queries works.
The idea here is to create a shortcode.
THis shortcode refere to a custom made PHP function, in which you can create a custom request to fetch the informations you need to display from Wordpress database, and display it in an HTML structure that you decide.
THen angain, you'll just have to customize it though CSS.
Note : no need to create a whole plugin if you decide to create a shortcode, you can use the template functions.php file for that.

Is there a way i can customize an Electro theme WordPress site masthead?

I need help in achieving the following:
Move the shoping cart infront of the search button.
fiting the menu items in the page, several are disapearing to the right
This is a very broad question. I'm unfamiliar with the theme but guessing it uses WooCommerce?
It sounds like you may want to create a Child Theme on this new theme and edit it that way - if you're adamant on using it.
https://developer.wordpress.org/themes/advanced-topics/child-themes/
WooCommerce offers lots of documentation on how to edit their themes by creating your own template files which overwrites the default ones they use.
https://docs.woocommerce.com/document/woocommerce-theme-developer-handbook/

How apply one sidebar for several pages in WordPress?

I have created one website by WordPress. I have one sidebar that I want apply to several pages. I read a lot of tutorials but I could not find any solutions? How can I do this??
Solution 1
Modify your theme - create custom page template and register new sidebar. It's pretty well documented on WordPress.org
Page templates
Sidebars
Solution 2
If you are not WP developer, this is simper and more user friendly solution for you.
Install Widget Logic plugin.
Add widgets to sidebar via WordPress administration.
Click on widget and specify conditions. For example you can restrict displaying of widget for pages in specific category: is_category(array(5,9,10,11))
For more condition examples read Widget Logic - Other notes section
If you are using avada theme you don't need to do anything, there is already option available for selecting sidebar on any page, so you can choose one sidebar for many page you wish.
If you didn't find Fusion Page Options in edit page screen than you have check your screen options.

WordPress - Modifying the MediaFlux theme

I have installed the MediaFlux theme from Mojo-Themes on my website at www.sjsueconomics.org. Here are my questions:
As you can see on the website, the blue menu at the very top of the page currently displays Page Titles. I want to display External Links there instead. How do I modify the code to do it?
The main menu (red text below the logo) currently displays Categories. Without changing the style or appearance, I want to display the Page Titles instead. How do I do it?
Thanks in advance!
The company you paid for the theme provides support, not a community which has no access to this product.
http://wordpress.stackexchange.com ; customizing a paid theme while providing no code (and having no right to provide any code) is not an appropriate subject for a StackOverflow question
if the theme supports custom menus, there ought to be a Menus page in the admin, under Appearances probably, or perhaps Settings. Go there, then create a menu with the pages or categories you want, then tell the theme to use the menu you created instead of the default. If the theme doesn't have such a feature, you'll need a programmer.

Wordpress - hardcoding subscribe2 (or any other plugin) widget into template

I know how to hardcode categories, archives, etc into theme but for one of my projects i would have to hardcode some plugins widgets (especially subscribe2) and i'm not sure how to do this. I know i can add widgets via widgets menu in wp admin, but that's not what i'm trying to achieve, i'm trying to set it up permamently in theme for later reuse. How to do this? Especially with subscribe2?
You can add the widget via the normal means, and check the code on the site using View->Source.
Then, you need to edit the html template for the theme (depending on where you want the widget to appear - main entry, sidebar.html, etc) and add the code there directly.

Resources