This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* tThis file goes into your website domain's root level directory | |
/* This file was shared by Hugh Smith during the 2018-10-22-Web Wonders Webinar (https:ownwp.com): Builing a Base for Development Productivity. | |
*/ | |
<?php | |
/* | |
Additional notes for this gist: | |
- You'll see that half of the constants are commented out. Nice to | |
have them there when needed. | |
- Using a non-standard WP directory structure. | |
- See BuB note below. Possible items to change during migration: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add this code to the functions.php file of your WordPress website child theme. | |
//It will add your RSS link to any content scraped or stolen, sending readers back to your RSS | |
// From the 2018-10-15 OwnWP Webinar (https://ownwp.com): RSS Tips and Tricks | |
function embed_rss($content) { | |
if(is_feed()) | |
$content .= "<p><a href='". get_permalink() ."'>'"; | |
$content .= get_the_title() ."</a></p>"; | |
return $content; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GOOGLE MAP UPDATE - be sure to change the form ID in this code to the real Map ID number from the site | |
[one_half] | |
<h4>Use the form below to contact your manager.</h4> | |
<h3><a href="http://acrirlty.com"><img class="alignleft" src="https://s3.amazonaws.com/acri/Acri-Greater-Pittsburgh-Property-Management.png" alt="Acri Community Realty" width="170" height="170" /></a>Acri Community Realty</h3> | |
<div>Greater Pittsburgh Property Management</div> | |
<div>290 Perry Highway | |
Pittsburgh, PA 15229</div> | |
<div>Phone: 412-459-0111</div> | |
<div>email: info@acrirlty.com</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function() { | |
// Adding Mobile Menu Toggle | |
var nav = jQuery('.builder-module-navigation'); | |
jQuery.each( nav, function(){ | |
if ( !jQuery(this).hasClass('secondary-navigation') ) { | |
var menu = jQuery(this).find('.menu'); | |
menu.addClass("it-mobile-menu-hidden"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.builder-module-element { | |
padding-bottom: 3em; | |
} | |
.single .builder-module-element { | |
padding-bottom: 0; | |
} | |
.builder-module-widget-bar .widget-background-wrapper { | |
margin-right: 0; | |
} | |
.left .builder-module-sidebar-with-element .widget-background-wrapper:last-child { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************* | |
Mobile Menu | |
*********************************************/ | |
.mobile.builder-module-navigation .it-mobile-menu-hidden { | |
display: none; | |
margin-bottom: 1em; | |
} | |
.nav-with-logo .builder-module-element .builder-module-navigation-menu-wrapper, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************* | |
Button Link Styles | |
(from Summit) | |
*********************************************/ | |
.btn, | |
.more-link, | |
.loop-utility a, | |
input[type="submit"], | |
input[type="button"] { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add information within this file to an existing functions.php - Remember to replace or add to existing code. | |
// To add an array of options to what we want to address specifically when designing for mobile-friendly version of site | |
add_theme_support( 'builder-responsive', array('tablet-width' => '800px', 'mobile-width' => '400px' ) ); | |
// Enqueuing and Using Custom Javascript/jQuery | |
function custom_load_custom_scripts() { | |
wp_enqueue_style( 'dashicons' ); | |
if ( file_exists( get_stylesheet_directory() . '/js/custom_jquery_additions.js' ) ) |