Skip to content

Instantly share code, notes, and snippets.

Example sunrise.php file for nested sub directories as described in https://paulund.co.uk/wordpress-multisite-with-nested-folder-paths, I used this on WordPress Multisite v.5.3.2, this is example for local setup, video description YouTube


.htaccess

# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>

WordPress Multiste, Subsites, Sitemap, Yoast, ACF Pro YouTube

functions.php

if ( function_exists('acf_add_options_page') ) {
	 
	if ( get_current_blog_id() == 1 ) {

		acf_add_options_page(array(
			'page_title' 	=> 'Sitewide Settings',

WordPress Multisite Modify Title Tags ACF Pro YouTube

functions.php


if ( function_exists('acf_add_options_page') ) {
	 
	if ( get_current_blog_id() == 1 ) {

		acf_add_options_page(array(

YouTube


.Setup Commands

git config --global user.name "Bitbucket to CodeShip to WP Engine deploy"
git config --global user.email "name@example.com"
mkdir /home/rof/clone/wp-content
cp -rp /home/rof/clone/web/* /home/rof/clone/wp-content/
jQuery(document).ready( function($) {

  var $linkToOpenPrintDialog = $('#tvcPrintThisLinkId');
  var windowObjectReference = null;
  var windowFeatures = 'left=0,top=0,width=800,height=900,menubar=no,toolbar=no,location=yes,resizable=no,scrollbars=no,status=no';
  var windowFeaturesStyles = '<link rel="stylesheet" media="print" href="/wp-content/themes/salient-child/dist/css/app-print.css">';
  
  $linkToOpenPrintDialog.on('click', function(event) {
    openPrintDialog(this.href, this.target, 'tvcInnerCalculatorDivId', event);    
@atazmin
atazmin / Show-element-based-on-url-query.md
Last active June 12, 2020 14:47
WordPress Title tags modifiers

Bottom out of viewport

window.addEventListener('scroll', function() { 
      var isOut = isBottomOutOfViewport($formstackContactUsFormTarget);
      console.log(isOut)

      if (isOut) {
        $formstackContactUsFormTriggerCloned.addClass('formstack-contact-us-form-cloned--visible');
      } else {