From d791c703644ebbb9018da513b504a36c07979c79 Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Tue, 4 Jun 2024 12:17:13 -0600 Subject: [PATCH] post pages --- functions.php | 231 ++++++++++++++++++++++++++++++++++++++++++++++++++ single.php | 53 ++++++++++++ style.css | 69 +++++++++++++++ 3 files changed, 353 insertions(+) diff --git a/functions.php b/functions.php index a05df97..ddd9a6f 100644 --- a/functions.php +++ b/functions.php @@ -34,4 +34,235 @@ function my_widgets_init() { } add_action( 'widgets_init', 'my_widgets_init' ); +// Breadcrumbs +function custom_breadcrumbs() { + + // Settings + $separator = '>'; + $breadcrums_id = 'breadcrumbs'; + $breadcrums_class = 'breadcrumbs'; + $home_title = 'Homepage'; + + // If you have any custom post types with custom taxonomies, put the taxonomy name below (e.g. product_cat) + $custom_taxonomy = 'product_cat'; + + // Get the query & post information + global $post,$wp_query; + + // Do not display on the homepage + if ( !is_front_page() ) { + + // Build the breadcrums + echo ''; + + } + +} + ?> \ No newline at end of file diff --git a/single.php b/single.php index e69de29..7da595a 100644 --- a/single.php +++ b/single.php @@ -0,0 +1,53 @@ + + +
+ +
+ + +

+ + + +
+

Related Articles

+ +
+ + +
+ +
+ + \ No newline at end of file diff --git a/style.css b/style.css index 6556cb6..ec879a3 100644 --- a/style.css +++ b/style.css @@ -456,4 +456,73 @@ nav { .footer-copyright { margin: 15px 5px; +} + +/* Posts */ + +.article-title { + font-weight: 400; +} + +.img-responsive { + display: block; + margin: auto; + max-width: 100%; + float: left; + margin-top: 20px; + margin-bottom: 20px; + margin-right: 10px; +} + +.article-sidebar-ad { + margin-top: 30px; + width: 100%; +} + +.article-author-box { + display: flex; + justify-content: space-between; + align-items: center; + border-bottom: 1px dotted #272727; + border-left: 1px dotted #272727; +} + +.article-author-box img { + width: 15px; +} + +.article-author-name { + margin-left: 2px; +} + +/* related posts */ + +.related-posts-grid { + display: flex; + justify-content: space-between; + flex-wrap: wrap; +} + +.related-posts-card { + display: block; + text-align: center; +} + +/* BREADCRUMBS */ +#breadcrumbs{ + list-style:none; + margin:30px 0; + overflow:hidden; +} + +#breadcrumbs li{ + display:inline-block; + vertical-align:middle; + margin-right:15px; +} + +#breadcrumbs .separator{ + font-size:18px; + font-weight:100; + color:#ccc; } \ No newline at end of file