Creating Custom Module In Divi

add_action( 'et_builder_ready', 'evr_initialize_divi_modules' );

function evr_initialize_divi_modules() {
    if ( ! class_exists( 'ET_Builder_Module' ) ) { return; }

    class EVR_Builder_Module_Testimonial extends ET_Builder_Module {
        function init() {
            $this->name       = esc_html__( 'Testimonial', 'evr' );
            $this->slug       = 'evr_pb_testimonial';
            $this->fb_support = true;

            // ...

        }
    }
}

Deregister script and css file that is registered by Visual Composer from a theme

An example how to deactivate the whole Flexslider, Nivoslider and Owl Carousel sliders in the Visual Composer plugin.

add_action( 'wp_enqueue_scripts', 'remove_vc_modules', 99 );
function remove_vc_modules() {
	wp_deregister_style( 'flexslider' );
	wp_deregister_script( 'flexslider' );

	wp_deregister_style( 'nivo-slider-css' );
	wp_deregister_style( 'nivo-slider-theme' );
	wp_deregister_script( 'nivo-slider' );

	wp_deregister_style( 'owl-carousel' );
	wp_deregister_script( 'owl-carousel' );
}

Typography

h1 That easy. This is the time to get out all your frustrations

h2 Don’t be afraid to make these big decisions

h3 I thought today we would make a happy little stream that’s just running through the woods here

h4 Anyone can paint. Nothing wrong with washing your brush.

p Just go back and put one little more happy tree in there. Have fun with it. We don’t really know where this goes – and I’m not sure we really care. Let’s make some happy little clouds in our world. You could sit here for weeks with your one hair brush trying to do that – or you could do it with one stroke with an almighty brush. Van Dyke Brown is a very nice brown, it’s almost like a chocolate brown.

  • li As trees get older they lose their chlorophyll.
  • li Just float and wait for the wind to blow you around. In nature, dead trees are just as normal as live trees. Isn’t it great to do something you can’t fail at?
  • li See how easy it is to create a little tree right in your world.
  1. li As trees get older they lose their chlorophyll.
  2. li Just float and wait for the wind to blow you around. In nature, dead trees are just as normal as live trees. Isn’t it great to do something you can’t fail at?
  3. li See how easy it is to create a little tree right in your world.

 
NOTE: The code below will not replicate the above example. It is simply standard classes to start with. Adding font weight, font size, and font family with produce * similar * results.

p {
	line-height: 24px;
}

h2, .h2, h3, .h3, h4, .h4 {
	margin-bottom: 0.5em;
	line-height: 1.2;
}

h1, .h1 {
	line-height: 1.2;
}
h2, .h2 {
	font-size: 21px;
}

a, a:visited {
	text-decoration: none ;
	&:hover, &:focus {
		text-decoration: none ;
	}
}

.entry-content a:hover, .entry-content a:focus, .fancybox-wrap a:hover p, .fancybox-wrap a:focus p {
	color:$color-primary-hover;
}


hr {
	border-color: #ccc;

}

Setup Laravel Elastic Search

# Install Elastic Search
– cd into your Homestead folder

– before ‘end’ add the lines:
 config.ssh.forward_x11 = true
 config.vm.network “forwarded_port”, guest: 9200, host: 62000
– SSH into the vagrant box by running ‘vagrant ssh’
– run the command ‘./runAfterSSH_toInstallElasticSearch.sh’
– exit your vagrant SSH using the command ‘exit’
– run ‘vagrant reload’

Website Pre Launch

Pre-Launch Checklist

  • All test copy has been removed
  • Content has been checked for spelling, grammar etc.
  • No broken links in the navigation & throughout the content
  • Favicon has been added
  • Enable search engine crawling – ensure robots.txt is not blocking the site from being crawled
  • In WordPress, this is usually controlled in Settings > Reading > Discourage search engines.
  • Custom 404 page has been created
  • Add 301 redirects where needed
  • Cross-browser development has been done, IE9+, Firefox, Chrome, Safari
  • All forms are sending to the correct email addresses
  • Passes W3C Validation (not needed, but nice to have)
  • All custom functionality has been tested
  • Add Google Analytics – if a rebuild, use the existing ID else create a new one under my account
  • Add site to the following services:
  • Webmaster tools
  • Firewall
  • DuplicatorPro Backups
  • UptimeRobot
  • ManageWP

CMS

OVERALL

    • hide any SEO or performance plugins from client
    • ensure all fields and labels have the same typeface (including WYSIWYG)
    • ensure wording on things makes sense for client
    • CMS login information has been setup for client
    • log in to CMS under user account and ensure they can add/edit/delete everything they are supposed to

CAROUSEL

    • ensure carousel text fields have a character count cap if needed

NAV UPDATES

    • move menu management into main nav (out of appearance nav)
    • hide posts, comments, contact forms, appearance, settings, users, tools, performance, SEO, framework nav items from if not needed
    • move pods under the Pages nav item

PAGES/POSTS/PODS

    • hide any fields or field groups that are not being used
    • rearrange field groups so they make sense/match front end ordering

PLUG-INS

    • Install Wordfence Security
    • Activate Facebook Thumb Fixer plugin

SEO

Meta Tags

    • Title

Accessibility

Installing Laravel With Homestead

Laravel 5.2 Installation with Homestead