Skip to content

Commit

Permalink
Enqueu fontawesome script in the function.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelyeden committed Jun 18, 2019
1 parent 13446c5 commit ed967db
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion themes/rcforward/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ function red_starter_minified_css($stylesheet_uri, $stylesheet_dir_uri)
function red_starter_scripts()
{
wp_enqueue_style('red-starter-style', get_stylesheet_uri());

wp_enqueue_style('rcfontawesome', 'https://use.fontawesome.com/releases/v5.8.1/css/all.css');

wp_enqueue_script('waypoints', 'https://cdnjs.cloudflare.com/ajax/libs/waypoints/2.0.3/waypoints.min.js', array('jquery'));
wp_enqueue_script('counterup', 'https://cdn.jsdelivr.net/npm/[email protected]/jquery.counterup.min.js', array('jquery', 'waypoints'), '', true);

Expand Down
2 changes: 2 additions & 0 deletions themes/rcforward/js/counter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
delay: 20,
time: 2000
});
$()
$('.menu-item-has-children').append('<span><i class="fas fa-angle-down"></i></span>');
}); // end doc ready
})(jQuery);

6 changes: 6 additions & 0 deletions themes/rcforward/sass/_hamburger.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,9 @@
// }
// }

i{
color: #fff;
font-size: 2em;
position: absolute;

}
5 changes: 5 additions & 0 deletions themes/rcforward/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,11 @@ body {
.site-header .menu .menu-item-71 .sub-menu .menu-item a {
color: #14225F; }

i {
color: #fff;
font-size: 2em;
position: absolute; }

* {
-webkit-box-sizing: border-box;
box-sizing: border-box; }
Expand Down

0 comments on commit ed967db

Please sign in to comment.