This file contains 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
// This adds ACF content to the posts content if it is called by the feed. | |
// SRC: https://digwp.com/2012/10/customizing-wordpress-feeds/ AND http://www.paulund.co.uk/add-custom-fields-to-rss-feed | |
function fields_in_feed( $content ) { | |
if( is_feed() ) { | |
$post_id = get_the_ID(); | |
$acf = get_post_meta( $post_id, 'newsletter-posts-specific', true ); //using 'true' here is vital | |
$output = ''; | |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Test tube</title> |
This file contains 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
var map; | |
function initialize() { | |
// You need to set your latitude and longitude here | |
var myLatlng = new google.maps.LatLng(51.497951, -0.144491); | |
var isDraggable = $(document).width() > 480 ? true : false; // If document is wider than 480px, isDraggable = true, else isDraggable = false SRC - https://coderwall.com/p/pgm8xa | |
var mapOptions = { | |
zoom: 16, |
This file contains 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
<!-- Move to your custom.js file --> | |
$(window).on( 'resize', function () { | |
var viewportHeight = $(window).height(); | |
var headHeight = $(".center-head").height(); | |
var customPadding = (viewportHeight-headHeight)/2; | |
$(".center-head").css({"padding-top": customPadding }); | |
}).resize(); |
NewerOlder