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
| DON'T FORGET ** | |
| - change to your value $image, setPostType(), html response tpl, html classes | |
| - hide by deffault in css 'page-stories__item' | |
| IN YOUR TEMPLATE | |
| ================ | |
| <!-- get all custom taxonomy categories --> | |
| <div class="stories-category__wrapper"> |
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
| function animateEl(animEl) { | |
| let counter = 0.2, | |
| animArray = animEl; | |
| animArray.each(function(index, value) { | |
| counter += 0.2; | |
| $(value).css('transition-delay', `${counter}s`); | |
| let targetPos = $(value).offset().top, | |
| winHeight = $(window).height(), |
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"?> | |
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
| IN FUNCTION.PHP | |
| =============== | |
| <?php | |
| /** | |
| * Add post filter characters. | |
| */ | |
| function content_excerpt( $args = '' ){ | |
| global $post; |
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
| //redirect & anchor scroll | |
| var host = window.location.hostname; | |
| function anchorRedirect() { | |
| var pathToBlogPage = '/blog/#to-blog'; | |
| var pathToNewsPage = '/blog/#to-news'; | |
| var anchorItemBlog = $('.js-link_blog'); | |
| var anchorLinkBlog = $('.js-link_blog').find('a'); |
NewerOlder