Compare commits

..

2 Commits

Author SHA1 Message Date
jorge 05a2d54b64 styled query to not show pre info in the_title 2022-12-28 20:50:12 +01:00
jorge b193fbef4a styled title in mid size 2022-12-28 20:49:30 +01:00
6 changed files with 64 additions and 1 deletions

View File

@ -188,3 +188,14 @@ if ( defined( 'JETPACK__VERSION' ) ) {
* Functions to personalize login screen * Functions to personalize login screen
*/ */
require get_template_directory() . '/inc/login-functions.php'; require get_template_directory() . '/inc/login-functions.php';
/**
* Functions to personalize the_archive_title() function
*/
require get_template_directory() . '/inc/archive-title.php';
/**
* Functions to add guttemberg editor style
*/
//require get_template_directory() . '/inc/guttemberg-editor-style.php';

26
inc/archive-title.php Normal file
View File

@ -0,0 +1,26 @@
<?php
/**
* Archive title customization.
* Get rid of the "Category:" "Tag:" "Author:" "Archives:" lables in
*
* https://developer.wordpress.org/reference/functions/get_the_archive_title/#comment-1807
*/
function ofisuport_archive_title( $title ) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
} elseif ( is_author() ) {
$title = '<span class="vcard">' . get_the_author() . '</span>';
} elseif ( is_post_type_archive() ) {
$title = post_type_archive_title( '', false );
} elseif ( is_tax() ) {
$title = single_term_title( '', false );
}
return $title;
}
add_filter( 'get_the_archive_title', 'ofisuport_archive_title' );

View File

@ -11,3 +11,9 @@ $columns: (
); );
$columns__margin: 3.8%; $columns__margin: 3.8%;
//grid properties
$grid__gap: 1rem;
$grid__column-gap: $grid__gap;
$grid__row-gap: $grid__gap;

View File

@ -66,8 +66,17 @@
.no-sidebar { .no-sidebar {
.site { .site {
padding: 0 2rem; padding: 0 2rem;
.archive-posts {
display: grid;
grid-template-columns: repeat(4 , 1fr);
gap: $grid__gap;
}
} }
.site-header { .site-header {
height: 12rem;
&::after {
top: 12rem;
}
.main { .main {
flex-flow: column; flex-flow: column;
border-bottom: 1px solid $color__grey-lighter; border-bottom: 1px solid $color__grey-lighter;

View File

@ -783,6 +783,17 @@ textarea {
.no-sidebar .site { .no-sidebar .site {
padding: 0 2rem; padding: 0 2rem;
} }
.no-sidebar .site .archive-posts {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
}
.no-sidebar .site-header {
height: 12rem;
}
.no-sidebar .site-header::after {
top: 12rem;
}
.no-sidebar .site-header .main { .no-sidebar .site-header .main {
flex-flow: column; flex-flow: column;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;

File diff suppressed because one or more lines are too long