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
| /*======================================================================== | |
| Tag Cloud Filter | |
| ========================================================================*/ | |
| add_filter('widget_tag_cloud_args', 'filter_tag_cloud_limit'); | |
| function filter_tag_cloud_limit($args){ | |
| $args['number'] = ''; // Removes limit on number of tags | |
| return $args; |
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
| .long-shadow { | |
| text-shadow: rgba(18, 128, 106,1) -1px 1px, | |
| rgba(18, 128, 106,0.99) -2px 2px, | |
| rgba(18, 128, 106,0.98) -3px 3px, | |
| rgba(18, 128, 106,0.97) -4px 4px, | |
| rgba(18, 128, 106,0.96) -5px 5px, | |
| rgba(18, 128, 106,0.95) -6px 6px, | |
| rgba(18, 128, 106,0.94) -7px 7px, | |
| rgba(18, 128, 106,0.93) -8px 8px, | |
| rgba(18, 128, 106,0.92) -9px 9px, |
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
| body.woocommerce-account .woocommerce-MyAccount-navigation ul { | |
| margin: 0; | |
| } | |
| body.woocommerce-account .woocommerce-MyAccount-navigation ul li { | |
| list-style: none; | |
| } | |
| body.woocommerce-account .woocommerce-MyAccount-navigation ul li a { | |
| text-decoration: none; | |
| } |
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 | |
| /*======================================================================== | |
| Filter wp_list_categories to add new attribute | |
| ========================================================================*/ | |
| add_filter('wp_list_categories','moons_ajax_onclick'); | |
| function moons_ajax_onclick($output){ | |
| //if (is_post_type_archive('crew')) { // localize this filter if needed | |
| //if not using a CPT then change get_terms to get_categories |
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
| /* change social icons */ | |
| .fl-social-icons .fa-stack i:first-child { | |
| display: none; | |
| } | |
| .fl-social-icons .fa-stack i:nth-child(2) { | |
| color: inherit; | |
| } |
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 this code in your page template where needed | |
| function gs_target_blank($content) { | |
| $post_string = $content; | |
| $post_string = str_replace('<a', '<a target="_blank"', $post_string); | |
| return $post_string; | |
| } | |
| add_filter( 'the_content', 'gs_target_blank' ); |
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_filter('widget_tag_cloud_args', 'gs_filter_tag_cloud_limit'); | |
| function gs_filter_tag_cloud_limit($args){ | |
| //Optionally change the taxonomy | |
| //if(isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag'){ | |
| $args['number'] = ''; //Restrict number of tags | |
| //} | |
| return $args; | |
| } |
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 | |
| //https://ginastricklind.com/make-beaver-builder-work-on-woocommerce-product-pages/ | |
| /** | |
| * The Template for displaying all single products | |
| * | |
| * This template can be overridden by copying it to yourtheme/woocommerce/single-product.php. | |
| * | |
| * HOWEVER, on occasion WooCommerce will need to update template files and you | |
| * (the theme developer) will need to copy the new files to your theme to | |
| * maintain compatibility. We try to do this as little as possible, but it does |
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 | |
| ////https://ginastricklind.com/make-beaver-builder-work-on-woocommerce-product-pages/ | |
| do_action( 'fl_before_post' ); ?> | |
| <?php do_action( 'fl_before_post_content' ); ?> | |
| <div class="fl-post-content clearfix" itemprop="text"> | |
| <?php | |
| the_content(); | |
| ?> | |
| </div><!-- .fl-post-content --> |
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 | |
| add_action( 'genesis_after_entry', 'homepage_post_loop' ); | |
| function homepage_post_loop() { | |
| global $wp_query; | |
| global $paged; | |
| $paged = get_query_var('page'); | |
| $args = array( | |
| 'posts_per_page' => 10, |