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
| /* | |
| I do not ever want to do this again. So annoying. | |
| This takes two text fields, along with the submit button, and places them in a row or one line for desktop view. | |
| The two text fields need to have custom classes on them. Name and change appropiately. | |
| Ensure your Gravity Form has the correct ID number as well (shown below with ID 7). | |
| This should force your form to display in one line no matter the theme. |
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
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> | |
| <div> | |
| <div style="color: rgb(34, 34, 34); line-height: normal; widows: 1;"> |
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
| //pulls in the fonts from fonts.com | |
| function gob_add_editor_styles() { | |
| $font_url = str_replace( ',', '%2C', '//url.com/style.css' ); | |
| add_editor_style( $font_url ); | |
| } | |
| add_action( 'after_setup_theme', 'gob_add_editor_styles' ); |
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 | |
| if ( has_post_thumbnail() ) { | |
| the_post_thumbnail(); | |
| } else { | |
| echo '<img src="'; |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| RewriteRule ^folder/(.*)$ http://domain.com/$1 [R=301,NC,L] |
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 if ( is_page('slug') ) { // only executes on this page ?> | |
| <script type="text/javascript"> | |
| function gform_format_option_label(fullLabel, fieldLabel, priceLabel, selectedPrice, price, formId, fieldId) | |
| { | |
| // Only for field with ID of 5 | |
| if (fieldId == 5) | |
| // Disable option pricing. Simply return the field label. | |
| // This removes the price differentials in the drop down | |
| return fieldLabel; | |
| } |
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
| <div id="link-interceptor-container"> | |
| <div class="close-interceptor"> | |
| <div class="btn-close-interceptor">Close</div> | |
| </div> | |
| <div id="link-interceptor-content"></div> | |
| </div> | |
| <script type="text" id="tpl-interceptor"> | |
| <h2>You Are Leaving Domain.com</h2> | |
| <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
| //Closes interceptor | |
| // | |
| $('.btn-close-interceptor').click( | |
| function() | |
| { | |
| $('#link-interceptor-container').bPopup().close(); | |
| }); | |
| //Intercepts all anchor clicks | |
| // |
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
| //Closes interceptor | |
| // | |
| $('.btn-close-interceptor').click( | |
| function() | |
| { | |
| $('#link-interceptor-container').bPopup().close(); | |
| }); | |
| //Intercepts all anchor clicks | |
| // |
NewerOlder