Code

Add ReviewPop

View ReviewPop Code

Add ReviewPop

					
// Add ReviewPop
add_action('wp_enqueue_scripts', 'add_review_pop_modal');
function add_review_pop_modal() {
	$REVIEW_POP = 'RK-38145-40058-5587-v2';
	wp_enqueue_script( 'review_pop_widget', "https://my.reviewpops.com/website_marketing/show_popup_widget/$REVIEW_POP.js", '', null, true );
	wp_enqueue_script( 'review_pop_pixel', "https://my.reviewpops.com/website_marketing/retargeting_pixel/$REVIEW_POP.js", '', null, true );
}
// Removes ReviewPop on mobile
add_action('wp_print_scripts', 'remove_review_pop_modal');
function remove_review_pop_modal() {
	if (is_mobile()) {
		wp_dequeue_script( 'review_pop_widget');
		wp_dequeue_script( 'review_pop_pixel');
	}
}			
					
				

Add Advanced Custom Fields (ACF) via Function

View ACF Code

Add Advanced Custom Fields (ACF) via Function

					
function workshop_add_local_field_groups() {
acf_add_local_field_group(array (
"key"=> "group_workshop",
"title"=> "Workshop",
"fields"=> array (
array (
"key"=> "field_5e4c5b4ffeafc",
"label"=> "Workshop Name",
"name"=> "workshop_name",
"type"=> "text",
"instructions"=> "Add A Name to the Workshop",
"required"=> 1,
"placeholder"=> "i.e.  Arthritis Workshop"
),
array (
"key"=> "field_5e4c5b8efeafd",
"label"=> "Workshop Date",
"name"=> "workshop_date",
"type"=> "date_time_picker",
"instructions"=> "Pick a Date and Time",
"required"=> 1,
"display_format"=> "l, F j, Y  g:i a",
"return_format"=> "l, F j, Y  g:i a",
"first_day"=> 1
),
array (
"key"=> "field_5e4c5bcbfeafe",
"label"=> "Workshop Aspect",
"name"=> "workshop_aspect",
"type"=> "text",
"instructions"=> "Add a Workshop Aspect",
"placeholder"=> "Free Workshop on Arthritiis"
),
array (
"key"=> "field_5e4c66ee1e911",
"label"=> "Workshop Questions",
"name"=> "workshop_questions",
"type"=> "repeater",
"instructions"=> "List of questions",
"layout"=> "table",
"button_label"=> "Add a question",
"sub_fields"=> array (
array (
"key"=> "field_5e4c670a1e912",
"label"=> "Question",
"name"=> "question",
"type"=> "text",
"instructions"=> "Add a question",
"placeholder"=> "Do you have Chronic Pain or Arthritis?"
)
)
),
array (
"key"=> "field_5e4c674be3b0c",
"label"=> "Workshop Answer",
"name"=> "workshop_answer",
"type"=> "text",
"instructions"=> "Answer to the Question(s)",
"placeholder"=> "Learn safe and effective ways to improve your arthritis pain WITHOUT medication, shots or surgery!"
),
array (
"key"=> "field_5e4c5d8cfeb00",
"label"=> "Workshop Speakers",
"name"=> "workshop_speakers",
"type"=> "repeater",
"instructions"=> "List of Speakers",
"layout"=> "table",
"button_label"=> "Add Speakers",
"sub_fields"=> array (
array (
"key"=> "field_5e4c5f57feb01",
"label"=> "Speaker Name",
"name"=> "speaker_name",
"type"=> "text",
"instructions"=> "Add a name",
"placeholder"=> "Jane Smith"
),
array (
"key"=> "field_5e4c5f93feb02",
"label"=> "Speaker Title",
"name"=> "speaker_title",
"type"=> "text",
"instructions"=> "Add a title",
"placeholder"=> "PA, Wound Care Specialist"
)
)
),
array (
"key"=> "field_5e4c5fb8feb03",
"label"=> "Workshop Learning Points",
"name"=> "workshop_learning_points",
"type"=> "repeater",
"instructions"=> "List of learning points",
"layout"=> "table",
"button_label"=> "Add Points",
"sub_fields"=> array (
array (
"key"=> "field_5e4c6002feb04",
"label"=> "Learning Point",
"name"=> "learning_point",
"type"=> "text",
"instructions"=> "Add a point",
"placeholder"=> "How these conditions can be treated safely and effectively without medicines, shots or surgery."
)
)
),
array (
"key"=> "field_5e4c637b8e438",
"label"=> "Workshop SWAG",
"name"=> "workshop_swag",
"type"=> "textarea",
"instructions"=> "Add Swag for Workshop",
"placeholder"=> "FREE Vendor Giveaways!"
),
array (
"key"=> "field_5e4c60ecfeb07",
"label"=> "Workshop Location Address",
"name"=> "workshop_location",
"type"=> "textarea",
"instructions"=> "Provide an address for the host location",
"placeholder"=> "Lillington Sports Zone 320 E Cornelius Blvd Lillington, NC 275"
),
array (
"key"=> "field_5e4c63b18e439",
"label"=> "Workshop CTA",
"name"=> "workshop_cta",
"type"=> "text",
"instructions"=> "Add a call to action",
"placeholder"=> "***Space is limited! Reserve your spot today!!***"
),
array (
"key"=> "field_5e4c6168feb08",
"label"=> "Workshop Contact Phone",
"name"=> "workshop_contact_phone",
"type"=> "text",
"instructions"=> "Add a contact number",
"placeholder"=> ""
),
array (
"key"=> "field_5e4c6185feb09",
"label"=> "Workshop Contact Email",
"name"=> "workshop_contact_email",
"type"=> "email",
"instructions"=> "Add a contact email",
"placeholder"=> "janesmith@yourclinic.com"
),
array (
"key"=> "field_5e4c5d27feaff",
"label"=> "External Link",
"name"=> "external_link",
"type"=> "link",
"instructions"=> "If using a third party for workshops, add an external Link",
"return_format"=> "url"
)
),
"location"=> array (
array (
array (
"param"=> "post_type",
"operator"=> "==",
"value"=> "workshop"
)
)
),
"menu_order"=> 1,
"position"=> "normal",
"style"=> "default",
"label_placement"=> "top",
"instruction_placement"=> "label",
"hide_on_screen"=> "content_editor",
));
}
add_action('acf/init', 'workshop_add_local_field_groups', 15);
					
				

Additional Menu No Function Call

View Menu Code

Additional Menu No Function Call

					
$nav = wp_nav_menu(array(
'menu'=> 'redesign',
'menu_class'=> 'uk-navbar-nav uk-visible-large uk-width-1-1 uk-flex uk-flex-space-between',
'depth'=> 2,
'walker'=> new WordPressUikitMenuWalker('navbar'),
'echo'=> false,
'fallback_cb'=> false
));
					
				

Javascript Disabled Notification
You can't see because its hidden by the <noscript> tag

View Disabled Notification Code

Javascript Disabled Notification

					
					
					
				

Add Call Widget

View Code

Add Call Widget

					
// Call Widget  
add_action('wp_enqueue_scripts', 'add_call_widget');
function add_call_widget() {
	wp_enqueue_script( 'call_widget', "https://api.callwidget.co/embed?iID=eyJpdiI6IktYdTJpdG4wV1dhTkQ5bUhRYkVva2c9PSIsInZhbHVlIjoiVmsxQUNZWFBQZmhISCtEOTdmQnJudz09IiwibWFjIjoiYzA5MTYxOWQ1OTc0Y2ZjZGMxYmJhMWJmYmY2MTEwYmVhNWYwNWE4MjkxZTEzMmJkZTY0NTlmZWNkYmM2YWY2NyJ9", '', false, true );

}				
					
				

Based on [google_total_reviews_count_ceil] reviews