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
<?php | |
/* | |
Template Name: List of Posts with Google Ads | |
This is a simple WordPress page template for showing a list of post titles | |
in a specific category, with a Google ad after a certain number of posts. | |
Add your Google Adsense script in the div with class custom-adsense. Save this | |
file in the same folder in your WordPress theme directory where your page.php | |
file lives, and a new template called "List of Posts with Google Ads" | |
will be available when you create new pages in WordPress. |
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
/* | |
------------------------------ | |
Bootstrap's grid handles most browser resize issues beautifully, but I ran into a situation | |
where I really needed a div with a col-md-9 class to change dynamically to a div with a col-md-12 class at certain | |
browser sizes only. I gave these divs an id of #jquery-target. This jQuery snippet did the trick. | |
------------------------------ | |
*/ | |
jQuery(document).ready(function ($) { |
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
<?php | |
/** | |
* GravityView doesn't trigger the `gform_after_submission` action when editing entries. This does that, | |
* but ONLY FOR FORM #20. | |
* | |
* @param array $form | |
* @param int $entry_id ID of the entry being updated | |
* @param GravityView_Edit_Entry_Render $object | |
* |