Skip to content

Commit

Permalink
Breadcrumb location change, language selector fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IntoJHyyry committed Apr 14, 2021
1 parent 3cc137e commit f20dec1
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 31 deletions.
2 changes: 2 additions & 0 deletions components/block-hero/block-hero.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
</div>

<?php
/*
if(!is_admin()) {
if ( !is_front_page() && function_exists('yoast_breadcrumb') ){
global $post;
Expand All @@ -79,5 +80,6 @@
}
}
}
*/
?>
</div>
58 changes: 31 additions & 27 deletions dev/stylesheets/screen.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/stylesheets/screen.css

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
<div id="content" class="site-content">

<?php
get_template_part('template-parts/partial', 'breadcrumbs');

/*
if ( !is_front_page() && function_exists('yoast_breadcrumb') ){
global $post;
Expand All @@ -86,4 +89,5 @@
} else {
get_template_part('template-parts/partial', 'breadcrumbs');
}
}
}
*/
4 changes: 3 additions & 1 deletion sass/partials/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
}

.breadcrumbs-container {
margin-bottom: 32px;
@include media-breakpoint-up(lg) {
margin-bottom: 32px;
}

&.mobile {
@include media-breakpoint-up(lg) {
Expand Down
2 changes: 1 addition & 1 deletion template-parts/partial-language-selector.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="language-selector">
<?php
if (function_exists('icl_get_languages')) {
$langs = icl_get_languages('skip_missing=0&link_empty_to='.site_url(). '/?lang={%lang}');
$langs = icl_get_languages('skip_missing=0&link_empty_to='.site_url(). '/{%lang}');

$active_lang = '';

Expand Down

0 comments on commit f20dec1

Please sign in to comment.