Remove Video Download Link in Divi Video Box

So there are times where you want to try to protect the video on a page. Here is the jQuery that you should use. <script> jQuery(document).ready(function() { if (jQuery(‘.et_pb_video_box').length !== 0) {...

Rename of Project Permalink in Divi

Put this in the functions file. function custom_project_name () { return array( ‘feeds' => true, ‘slug' => ‘videos', ‘with_front' => false, ); } add_filter( ‘et_project_posttype_rewrite_args', ‘custom_project_name ‘...

Stylesheet Caching

This little snippet of code allows for you to update the stylesheet url based on the time it was edited so when you update the stylesheet the url changes and the cached version is no longer the correct version. <link rel=”stylesheet”...

Search for Orphaned Post Meta Data

Here is a SQL statement that allows you to search the database for orphaned post meta data. So it looks for any meta data that no longer has a corresponding post in the posts table. SELECT pm.meta_id, pm.post_id FROM wp_postmeta as pm LEFT JOIN wp_posts as p ON...

Unwanted Characters in XML handling in php

So I ran into an issue where there was unwanted characters where spaces where suppose to be or nothing at all.  Here is a sample of those characters.  †“ Here is the fix that I implemented and it cleaned up the code right away. echo “<META...