Build Your Own Plugin: A Simple Plugin to Easily Embed A Divi Section Or Module Within Another | Divi Notes

Build Your Own Plugin: A Simple Plugin to Easily Embed A Divi Section Or Module Within Another | Divi Notes

BUILD YOUR OWN PLUGIN: A SIMPLE PLUGIN TO EASILY EMBED A DIVI SECTION OR MODULE WITHIN ANOTHER

Posted by Rob Hobson | Nov 19, 2017 | Development, Plugins | 15 |

If you’ve ever had to add code to your child theme’s functions.php file, or you just want to try your hand at creating a simple plugin, this tutorial is for you. In this tutorial, we’re going to create a very simple WordPress plugin that you can use to add Divi Sections or Modules almost anywhere on your site. Okay, this plugin is very simple but perfect for someone who’s just starting off and wants to learn the basics without getting too caught up in the complexities of a sophisticated plugin. This was my first attempt at creating a plugin and, to be honest, it was quite cool to use a plugin I had created myself, even if it wasn’t rocket science building it.

Although, in principle, this tutorial will demonstrate the fundamentals of creating a WordPress plugin, please note that the functionality of this plugin does require that you already have the Divi theme by Elegant Themes.

Source: Build Your Own Plugin: A Simple Plugin to Easily Embed A Divi Section Or Module Within Another | Divi Notes

CodePen: Build, Test, and Discover Front-end Code.

What can I do to prevent this in the future?

If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.

If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices.

Source: CodePen: Build, Test, and Discover Front-end Code.

Positioning Slide Text on a Full-Width Divi Slider | Divi Booster

Positioning Slide Text on a Full-Width Divi Slider | Divi Booster

Here’s a quick tip for positioning the slide text on individual slides with the Divi Theme‘s full width slider.

Suppose you start with a full-width slider with a background image and some text, similar to that shown in the featured image above. Divi has an option in the slide settings to toggle the vertical alignment between centered and bottom-aligned. However, if you want more control over the text position, you will need to resort to CSS.

For example to align the slider text to the top right corner of the slide, we can add the following into the slide’s custom CSS field for the slide description:

Here’s the copy-and-pasteable version:

text-align: right; padding-top: 5% !important; padding-bottom: 27% !important;

Source: Positioning Slide Text on a Full-Width Divi Slider | Divi Booster

How To Make Accordion Module Tabs Closable And Change Icon On WordPress Using The Divi Theme – Success with WordPress 101

How To Make Accordion Module Tabs Closable And Change Icon On WordPress Using The Divi Theme – Success with WordPress 101

By default, the tabs of the Accordion Module in Divi cannot be closed. The opened tab can only be closed when clicking on another accordion tab. Today, we will be focusing on how to close an open accordion tab without having to press another, and also to have a “close” icon that you can click!

This tutorial will only require you to copy and paste a simple jQuery/Javascript code and a CSS Code. Don’t you worry if you’re not familiar with this, with this tutorial I’ve made, it’s pretty simple to follow.

Source: How To Make Accordion Module Tabs Closable And Change Icon On WordPress Using The Divi Theme – Success with WordPress 101

CSS « WordPress Codex

WordPress relies heavily on the presentation styles within CSS. With the use of Themes, you have an almost infinite choice of layout options. WordPress Themes make it easy to change your website’s appearance, and open up the field to help you create your own Theme and page layout.

CSS stands for Cascading Style Sheets. It allows you to store style presentation information (like colors and layout) separate from your HTML structure. This allows precision control of your website layout and makes your pages faster and easier to update.

This article briefly describes the use of CSS in WordPress, and lists some references for further information. For information on CSS itself, see Know Your Sources#CSS.

Contents

1 WordPress and CSS

2 Custom CSS in WordPress

2.1 Why use Custom CSS?

3 WordPress Generated Classes

4 Templates and CSS

5 WordPress Layout Help

6 CSS Resources

WordPress and CSS

WordPress Themes use a combination of template files, template tags, and CSS files to generate your WordPress site’s look.

Source: CSS « WordPress Codex