blogprzykawie
Odpowiedź forum utworzona
-
Forum: Używanie i konfiguracja WordPressa
W odpowiedzi na: Nie widoczny panel boczny na stronieDziękuję za odpowiedź.
Znalazłam plik sidebar-right.php, tutaj jest wszystko co jest tam zawarte na tą chwilę: <?php// get layout
$bard_sid = bard_page_layout();// check if available
if ( ! is_active_sidebar( 'sidebar-right’ ) || ( strpos( $bard_sid, 'rsidebar’ ) === false && strpos( $bard_sid, 'lrsidebar’ ) === false ) ) {
return;
}?>
<div class=”sidebar-right-wrap”>
<aside class=”sidebar-right”>
<?php dynamic_sidebar( 'sidebar-right’ ); ?>
</aside>
</div>i wciąż mi się nic nie wyświetla. Przez chwilę nawet miałam pasek kategorii i archiwa, potem gdy wstawiłam mp4 tamte znikneły a mp4 nie chciał się usunąć. teraz nagle nie mam niczego.
Tak mam na page.php:
<?php // Sidebar Right
if ( get_field( 'show_page_sidebar’ ) !== 'fullwidth’ ) {
if ( get_field( 'show_page_sidebar’ ) === 'rsidebar’ || get_field( 'show_page_sidebar’ ) === 'lrsidebar’ ) {
get_template_part( 'templates/sidebars/sidebar’, 'right’ );
}
}?>
a tak mam na single.php:
<?php // Sidebar Right
if ( get_field( 'hide_post_sidebar’ ) !== 'yes’ ) {
get_template_part( 'templates/sidebars/sidebar’, 'right’ );
}?>
Czy ja tutaj coś powinnam dopisać, zmienić usunąć? Dla mnie to kodowanie to czarna magia. Nie umiem się w tym za bardzo odnaleźć. Wolę wizualne ustawienia.
Odnośnie drugiej sprawy. Mój motyw to Bard Pro. Natomiast w pliku single.php mam tylko to:
<?phpget_header();
if ( get_field( 'hide_post_sidebar’ ) === 'yes’ ) {
$blog_single_layout = 'fullwidth’;
} else {
$blog_single_layout = bard_page_layout();
}?>
<div class=”main-content clear-fix<?php echo ( bard_options( 'general_single_width’ ) === 'boxed’ && get_field( 'full_width_post_content’ )!== 'yes’ ) ? ’ boxed-wrapper’: ”; ?>” data-layout=”<?php echo esc_attr( $blog_single_layout ); ?>” data-sidebar-sticky=”<?php echo esc_attr( bard_options( 'general_sidebar_sticky’ ) ); ?>” data-sidebar-width=”<?php echo esc_attr( bard_options( 'general_sidebar_width’ ) ); ?>”>
<?php
// Sidebar Left
if ( get_field( 'hide_post_sidebar’ ) !== 'yes’ ) {
get_template_part( 'templates/sidebars/sidebar’, 'left’ );
}?>
<!– Main Container –>
<div class=”main-container”><?php
// Single Post
get_template_part( 'templates/single/post’, 'content’ );// Author Description
if ( bard_options( 'single_page_show_author_desc’ ) === true ) {
get_template_part( 'templates/single/author’, 'description’ );
}// Single Navigation
if ( bard_options( 'single_page_show_author_nav’ ) === true ) {
get_template_part( 'templates/single/single’, 'navigation’ );
}// Related Posts
if ( bard_options( 'single_page_related_orderby’ ) !== 'none’ ) {
bard_related_posts( bard_options( 'single_page_related_title’ ), bard_options( 'single_page_related_orderby’ ) );
}// Comments
if ( bard_options( 'single_page_show_comments_area’ ) === true ) {
get_template_part( 'templates/single/comments’, 'area’ );
}?>
</div><!– .main-container –>
<?php // Sidebar Right
if ( get_field( 'hide_post_sidebar’ ) !== 'yes’ ) {
get_template_part( 'templates/sidebars/sidebar’, 'right’ );
}?>
</div>
<?php get_footer(); ?>
to jest cała zawartość.
Dodatkowo jak otwieram post ze strony głównej to jeden otwiera mi się na całej stronie a drugi z miejscem na sidebar po prawej stronie i też nie wiem jak to zmienić, żeby wszystkie otwierały się w nowym oknie tak samo.Będę bardzo wdzięczna za wszelkie informacje.
Pozdrawiam