No javascript or any of that rubbish. Just a span and some pseudo content.
Forked from Heydon's Pen Accessible, pretty radio controls.
A Pen by Abdullah Faruk on CodePen.
| //HTML Code | |
| <button id="topBtn"><i class="fas fa-arrow-up"></i></button> | |
| //CSS Code | |
| #topBtn{ | |
| position: fixed; | |
| bottom: 40px; | |
| right: 40px; | |
| font-size: 22px; | |
| width: 50px; |
| https://rendro.github.io/easy-pie-chart/ | |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"/> | |
| <title>jQuery</title> | |
| <meta name="viewport" content="width=device-width"/> | |
| <link rel="stylesheet" href="style.css"/> | |
| </head> |
| last 2 child add class | |
| ------------------------ | |
| $('ul.menu>li').slice(-2).addClass('last-elements'); | |
| lenth | |
| --------- | |
| if ($(".active").length) { | |
| $(".active").dropify(); | |
| } |
No javascript or any of that rubbish. Just a span and some pseudo content.
Forked from Heydon's Pen Accessible, pretty radio controls.
A Pen by Abdullah Faruk on CodePen.
| add_action( 'wp_enqueue_scripts', 'jk_masonry' ); | |
| function jk_masonry() { | |
| wp_enqueue_script( 'jquery-masonry', array( 'jquery' ) ); | |
| } | |
| /* | |
| How to use? | |
| $('#container').masonry({ singleMode: true }); |
| Root url for website | |
| --------------------------------------------------------- | |
| <?php site_url(); ?> | |
| <?php bloginfo('url'); ?> | |
| title of specific post/page | |
| --------------------------------------------------------- | |
| <?php wp_title(); ?> | |
| Title of site |
| <?php | |
| /** | |
| * The main template file. | |
| * | |
| * This is the most generic template file in a WordPress theme | |
| * and one of the two required files for a theme (the other being style.css). | |
| * It is used to display a page when nothing more specific matches a query. | |
| * E.g., it puts together the home page when no home.php file exists. | |
| * Learn more: http://codex.wordpress.org/Template_Hierarchy | |
| * |
| body{ | |
| font-family: Georgia; | |
| } | |
| p{ | |
| color: #999999; | |
| } | |
| li a{ | |
| text-decoration: none; | |
| display: block; | |
| } |