This file contains 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
# delete the dotnet folder under /usr/local/share/dotnet | |
1. cd /usr/local/share/dotnet && ls | |
2. sudo rm -rf dotnet | |
# delete the dotnet reference file at /etc/paths.d/dotnet | |
1. cd /etc/paths.d && ls | |
2. sudo rm dotnet |
This file contains 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 favicon and apple touch and Windows8 icons to the html page header of a WordPress website | |
* | |
* Add the favicon link properly to the page header so it will work in all browsers | |
* Add apple touch icons | |
* Add the Windows8 icons | |
* Presumes you will add the icons in the theme directory in a subfolder '/images/icons/' | |
* - adjust if you use another folder. |
This file contains 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 if (have_posts()) : ?> | |
<?php $count = 0; ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<?php $count++; ?> | |
<!-- Check for the first blog post in the loop && makes sure it the first page of results && makes sure it is the blog --> | |
<?php if ($count == 1 && $paged == 0 && is_home()) : ?> | |
<!-- Most recent blog post with custom template will display above older entries - Requires a content-featured.php or whatever you want to name your file or replace with code --> | |
<?php get_template_part( 'content', 'featured' ); ?> |
This file contains 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
<!-- Bootstrap 4 Carousel with WordPress Loop --> | |
<?php | |
$args = array( | |
'post_type' => 'post', | |
'category_name' => 'example-category' | |
); | |
$the_query = new WP_Query ( $args ); | |
?> | |