Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 645e507

Browse files
committed
Custom course header
1 parent 63125c6 commit 645e507

File tree

6 files changed

+26
-9
lines changed

6 files changed

+26
-9
lines changed

assets/css/child-styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/src/styles/modules.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@
107107
padding-right: $space-small;
108108
padding-left: $space-small;
109109
}
110+
111+
&.breadcrumbs--dark {
112+
background-color: black;
113+
padding: $space-small $space-normal;
114+
display: inline-block;
115+
color: $color-dark-gray;
116+
117+
a {
118+
color: white;
119+
}
120+
}
110121
}
111122

112123
// Overrides for the homepage hero

inc/custom-post-types/queulat-cc-course-cpt-plugin/class-cc-course-post-type.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,8 @@ public function get_post_type_args() : array {
6565
'can_export' => true,
6666
'delete_with_user' => true,
6767
'rewrite' => [
68-
'with_front' => true,
69-
'feeds' => true,
70-
'pages' => true,
71-
'slug' => 'cc_course',
72-
'ep_mask' => 1,
68+
'with_front' => false,
69+
'slug' => 'certificates'
7370
],
7471
'supports' => [
7572
0 => 'title',
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
if ( function_exists( 'yoast_breadcrumb' ) ) {
3+
yoast_breadcrumb( '<p class="breadcrumbs breadcrumbs--dark" id="breadcrumbs">', '</p>' );
4+
}
5+
?>
6+
<h2 class="title is-1 has-text-black"><?php the_title(); ?></h2>

page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="container">
1414
<div class="columns">
1515
<div class="column is-8">
16-
<section class="entry-page-content padding-top-xl padding-touch-horizontal">
16+
<section class="entry-page-content padding-top-xl">
1717
<div class="text-format content body-big">
1818
<?php the_content(); ?>
1919
</div>

single-cc_course.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66
<header class="single-header">
77
<div class="container">
88
<div class="columns is-centered">
9-
<div class="column is-8">
10-
<?php get_template_part( 'inc/partials/entry/page', 'header' ); ?>
9+
<div class="column is-12">
10+
<?php get_template_part( 'inc/partials/entry/course', 'header' ); ?>
1111
</div>
1212
</div>
1313
</div>
1414
</header>
1515
<div class="container">
1616
<div class="columns is-centered">
17+
<div class="column is-4">
18+
wow
19+
</div>
1720
<div class="column is-8">
1821
<section class="entry-page-content">
1922
<div class="text-format body-big">

0 commit comments

Comments
 (0)