how to create custome html section in wordpress? - wordpress

I am trying to make a wordpress theme with a static header and footer but i want the user to be able to customize the other sections between header and footer , let say i have 5 sections and in each page the user should be able to decide what sections to include in the page . i tried to use page builder plugin put its not what i want exactly because once i remove a row it won't be avilable any more and i want it to be there so the user can add or delete it at any time , is there a way to store my different html sections as a custome post or a custom field??

Advanced Custom Fields would work perfectly in this scenario. The plugin features over 30 field types.

Related

Wordpress custom template on every new page (Elementor)

I have wordpress and am using Elementor editor. I have added a page that is meant to be a template for each new pages. I added a block with breadcrumbs to this page. I want this page with breadcrumbs on evey new page that i create. Copying this page all the time creates problems, e.g. if I wanted to change something in this block so I must do this on every subpage. I do not know how to do it - all i want its one static page with that breadcrumbs that includes to every new page i create, and when im change something in this page, changes will appear on every page.
Help :( Photo below
https://i.stack.imgur.com/G1EyI.png
Use the "Template" block in Elementor
That is achievable with Elementor Pro using theme builder option.
Create that template as a single page template and then in display options choose to display it on all pages.
Creating a Single Page Template with Elementor Pro
Then you should use standard page editor or custom fields to put content that is then going to be rendered by the template.
Doing that will let you make changes on all pages at once by editing the template.

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.

Custom Page Templates in WordPress to show Content in specific layout

I want to create a custom page template in WordPress which shows Image Slideshow and then a video below it and finally some text - till now what I am able to do is play with sidebar, footer, header.
I can either remove them or keep them in my custom page templates but what I want to do is play with the page contents.
The Admin user should be able to see these sections in the Page Editor (WYSIWYG) when they choose the Template from the drop-down, so that they can accordingly add the correct content in correct place holders
Something like the attached screen-shot is showing
Is this possible in WordPress
Yes! It's possible to implement this! you can use https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431 or https://wordpress.org/plugins/siteorigin-panels/ plugin.
The first plugin allows you to create different page layout and save it. It also allows admin to choose page layout that admin has saved previously.
The second page builder plugin allows you to create template same way and allows admin to clone one page layout to another one.
Hope this will help you!

Add affiliates links in WordPress post from multiples websites

Is there any plugins (or ways) to add maybe 3 or 4 differents affiliates links in my posts automatically ?
I want to add the logo of the affiliate website with a link to the product.
I don't know how to do that.
(Sorry for my english i'm french)
Thank you
If you are comfortable editing PHP, html and css files than you could easily add such functionality yourself via custom fields.
You can add custom fields with product name, link and image url. They can be set as theme options if they are going to be the same or they can be unique per each post if you will assign such custom fields to posts.
Then in single.php template you can output the values and with html markup and some css you can give them any shape and style.
If you don't want to code custom meta boxes for your custom fields yourself, I would recommend Advanced Custom Fields plugin (it has great documentation).

How to create dynamic page in wordpress and hide from menu

I have a wordpress plugin and i want to create a dynamic page when the user activates the plugin. Page creation is already done. But i want to hide it from the pages menu. No matter how wordpress is configured i want to hide the page.
Page can be only accessed using the url.
Can anyone provide me a solution for this.
You can do it by assign a different value to post_type like dy_page
for more info see: Post_type and How to use Custom Post Types in WordPress 3.0

Resources