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
| <!DOCTYPE html> | |
| <html <?php language_attributes(); ?>> | |
| <head> | |
| <meta charset="<?php bloginfo('charset') ?>"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" > | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <?php wp_head(); ?> | |
| </head> | |
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
| <!-- What is Functions File in WordPress? --> | |
| <!-- Functions file commonly known as functions.php file is a WordPress theme file. | |
| It comes with all free and premium WordPress themes. | |
| The purpose of this file is to allow theme developers to define theme features and functions. This file acts just like a WordPress plugin and can be used to add your own custom code snippets in WordPress. | |
| You would find many of these code snippets on websites like https://deardorffassociatesweb.wordpress.com/ with instructions telling you to add this code in your theme’s functions.php file or a site-specific WordPress plugin. | |
| Now you may be thinking what’s the difference between a site-specific WordPress plugin and functions.php file? Which one is better? |
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
| <!-- breadcrumb --> | |
| <?php | |
| $theParent = wp_get_post_parent_id(get_the_ID()); | |
| if ($theParent) { ?> | |
| <div class="metabox metabox--position-up metabox--with-home-link"> | |
| <p><a class="metabox__blog-home-link" href="<?php echo get_permalink($theParent); ?>"><i class="fa fa-home" aria-hidden="true"></i> Back to <?php echo get_the_title($theParent); ?></a> <span class="metabox__main"><?php the_title(); ?></span></p> | |
| </div> | |
| <?php } | |
| ?> |
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
| var lis = document.querySelectorAll("li"); | |
| for(var i = 0; i < lis.length; i++){ | |
| lis[i].addEventListener("mouseover", function () { | |
| this.style.color = "green"; | |
| }); | |
| lis[i].addEventListener("mouseout", function () { | |
| this.style.color = "black"; | |
| }); | |
| }; |