Last fixes prior do release 2.1

This commit is contained in:
mateuswetah 2020-08-18 10:22:29 -03:00
parent 6a52232a5c
commit 0f09bb4ecf
5 changed files with 7 additions and 7 deletions

View File

@ -920,8 +920,10 @@
} }
#breadcrumb-single-item-pagination { #breadcrumb-single-item-pagination {
font-size: 0.875rem; font-size: 0.875rem;
height: 1.3rem;
.pagination { .pagination {
margin-bottom: 0;
padding: 0; padding: 0;
&:last-child { &:last-child {
padding: 0 6px; padding: 0 6px;

View File

@ -201,9 +201,9 @@ function tainacan_include_items_in_search_results( $query ) {
$query->set( 'post_type', array_merge( $existing_post_types, ['post', 'page', 'tainacan-collection'], $collections_post_types ) ); $query->set( 'post_type', array_merge( $existing_post_types, ['post', 'page', 'tainacan-collection'], $collections_post_types ) );
} else if ( $_GET['onlypages'] && $query->is_main_query() && $query->is_search() && ! is_admin() ) { } else if ( $_GET['onlypages'] && $query->is_main_query() && $query->is_search() && ! is_admin() ) {
$query->set( 'post_type', 'page' ); $query->set( 'post_type', 'pages' );
} else if ( $_GET['onlyposts'] && $query->is_main_query() && $query->is_search() && ! is_admin() ) { } else if ( $_GET['onlyposts'] && $query->is_main_query() && $query->is_search() && ! is_admin() ) {
$query->set( 'post_type', 'posts' ); $query->set( 'post_type', 'post' );
} }
} }
add_action( 'pre_get_posts', 'tainacan_include_items_in_search_results' ); add_action( 'pre_get_posts', 'tainacan_include_items_in_search_results' );

View File

@ -148,9 +148,7 @@ function tainacan_interface_the_breadcrumb() {
if ($previous !== '' || $next !== '') { if ($previous !== '' || $next !== '') {
?> ?>
<div <div id="breadcrumb-single-item-pagination" class="ml-auto d-flex align-items-center">
id="breadcrumb-single-item-pagination"
style="height: 1.125rem;" class="ml-auto d-flex align-items-center">
<div class="pagination"> <div class="pagination">
<?php echo $previous; ?> <?php echo $previous; ?>
</div> </div>

View File

@ -1,4 +1,4 @@
<form role="search" method="post" name="tainacan-search-form" class="search-form" onsubmit="return onTainacanSearchSubmit()"> <form role="search" method="post" name="tainacan-search-form" class="search-form" onsubmit="return onTainacanSearchSubmit()" style="margin-block-end: 0px;">
<div class="input-group"> <div class="input-group">
<input class="form-control py-2" type="search" name="s" placeholder="<?php esc_attr_e( 'Search', 'tainacan-interface' ); ?>" id="tainacan-search"> <input class="form-control py-2" type="search" name="s" placeholder="<?php esc_attr_e( 'Search', 'tainacan-interface' ); ?>" id="tainacan-search">
<span class="input-group-append d-none d-md-block"> <span class="input-group-append d-none d-md-block">

File diff suppressed because one or more lines are too long