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
| /************** | |
| Custom Social Share Buttons | |
| Author: Sachin Verma | |
| Author URL: www.bitdoz.com | |
| ***************/ | |
| .dashicons { | |
| line-height: inherit !important; |
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
| /** Add custom social share icons **/ | |
| add_action( 'genesis_entry_header', 'single_post_social_share' ); | |
| function single_post_social_share() { | |
| if ( is_single() ) { ?> | |
| <div class="social-sharer"> | |
| <div class="share-love"> | |
| <div class="share-text"><div class="dashicons dashicons-share"></div> Share it!</div> | |
| </div> | |
| <!-- Facebook Share --> | |
| <a href="http://www.facebook.com/share.php?u=<?php print(urlencode(get_permalink())); ?>&title=<?php print(urlencode(the_title())); ?>" target="_blank"><div class="share-facebook"><div class="share-text"><div class="dashicons dashicons-facebook-alt"></div> Share <div class="longtext">on Facebook</div></div></div></a> |
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
| //* Add support for WordPress dashicons | |
| add_action( 'wp_enqueue_scripts', 'themename_scripts' ); | |
| function themename_scripts() { | |
| wp_enqueue_style( 'themename-style', get_stylesheet_uri(), array( 'dashicons' ), '1.0' ); | |
| } |
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
| //Add opt-in after post | |
| function custom_content_after_post($content){ | |
| if (is_single()) { | |
| $content .= '<div class="mc-embed-signup" > | |
| <form action="http://bitdoz.us7.list-manage.com/subscribe/post?u=46e6cfce0bf832f92f8cb6811&id=72fccd0103" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> | |
| <center><div class="mc-field-text-top" style="font-weight: bold;font-size:30px;">Do you get my Freebies?</div></center> | |
| <div class="mc-field-group"><input type="email" style="max-width:380px; margin:3px; float:left; " value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required> | |
| <div class="optinbutton"><input type="submit" style="margin:4px; background-color: #f15123; float:left;" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div> | |
| <div class="mc-field-text" style="float:left;">Subscribe now to receive discounts, special offers and freebies direct to your inbox.</div></div></form> | |
| </d |
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
| /** Register above Post title widget for ads */ | |
| genesis_register_sidebar( array( | |
| 'id' => 'above-post-title', | |
| 'name' => __( 'Above Post Title', 'bitdoz' ), | |
| 'description' => __( 'This is the above post title widget.', 'bitdoz' ), | |
| ) ); | |
| /** Add the above post title widget for ads */ | |
| add_action( 'genesis_before_entry', 'above_post_title' ); | |
| function above_post_title() { |
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
| /** Register below Post title widget for ads */ | |
| genesis_register_sidebar( array( | |
| 'id' => 'below-post-title', | |
| 'name' => __( 'Below Post Title', 'bitdoz' ), | |
| 'description' => __( 'This is the below post title widget.', 'bitdoz' ), | |
| ) ); | |
| /** Add the below post title widget for ads */ | |
| add_action( 'genesis_entry_header', 'below_post_title' ); | |
| function below_post_title() { |
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
| /** Register below content section for ads */ | |
| genesis_register_sidebar( array( | |
| 'id' => 'below-content', | |
| 'name' => __( 'Below Content', 'bitdoz' ), | |
| 'description' => __( 'This is the below content widget.', 'bitdoz' ), | |
| ) ); | |
| /** Add the below content section for ads */ | |
| add_action( 'genesis_entry_footer', 'below_content_widget' ); | |
| function below_content_widget() { |
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
| /** Register below comments section for ads */ | |
| genesis_register_sidebar( array( | |
| 'id' => 'below-comments', | |
| 'name' => __( 'Below Comments', 'bitdoz' ), | |
| 'description' => __( 'This is the below comments widget.', 'bitdoz' ), | |
| ) ); | |
| /** Add the below comments section for ads */ | |
| add_action( 'genesis_loop', 'below_comments_widget' ); | |
| function below_comments_widget() { |