Blog post sidebar
This topic contains 11 replies, has 3 voices, and was last updated by Stiofan O’Connor 7 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
November 7, 2017 at 12:30 pm #404473
I am near complete customizing the site. Feeling frustrated with blogs. I cannot find a way to add/show sidebar in blog. when a widget is added to sidebar, it is shown on pages like buddypress profile and other pages. But not on blog?
I am on supreme directory. Please helpNovember 7, 2017 at 2:09 pm #404480Hi Himadri,
Could you check your blog posts and see if it’s what you’re looking for? https://ehospital.in/alopecia-treatment-options/
Thanks!
November 7, 2017 at 2:36 pm #404481Yes, somewhat that is correct. But now its appearing on buddypress pages like profile page.
Would like to know how did you achieve that?Secondly, these are appearing like list style
Thirdly, can I add another sidebar to blog archive here? https://ehospital.in/updates/Regards
November 7, 2017 at 3:39 pm #404489even it is appearing in https://ehospital.in/register/
November 7, 2017 at 8:01 pm #404519please ignore it. I am working on.
Regards
November 8, 2017 at 4:53 am #404554Hi Himadri,
Alright, let us know how it goes.
Thanks!
November 8, 2017 at 12:22 pm #404576Okay done. I am only stuck in one thing.
the blog sidebar shows list styles for recent reviews also. How to hide/remove it?
November 8, 2017 at 2:04 pm #404580Hi Himadri,
Use this custom CSS code below to fix it.
ul.geodir_recent_reviews li { display:block!important; }
November 8, 2017 at 2:26 pm #404581Thanks,
one more question. I edited directory starter/lib/entrymeta
but when I moved this to childtheme Supreme directory same folder or in lib, seems doesnot work. How to achieve it?
November 8, 2017 at 2:37 pm #404582Hi Himadri,
May I know what changes did you make?
Thanks!
November 8, 2017 at 2:55 pm #404584I added this for single post type printf(‘%s’, get_avatar( get_the_author_meta( ‘user_email’ ), 60 ));
and changed the order of metashere is the code
<?php function directory_theme_entry_meta() { if ( is_sticky() && is_home() && ! is_paged() ) { printf( '<span class="sticky-post">%s</span>', __( 'Featured', 'directory-starter' ) ); } $format = get_post_format(); if ( current_theme_supports( 'post-formats', $format ) ) { printf( '<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', sprintf( '<span class="screen-reader-text">%s </span>', _x( 'Format', 'Used before post format.', 'directory-starter' ) ), esc_url( get_post_format_link( $format ) ), get_post_format_string( $format ) ); } if ( 'post' == get_post_type() ) { if ( is_singular() || is_multi_author() ) { printf('%s', get_avatar( get_the_author_meta( 'user_email' ), 60 )); printf( '<span class="byline"><span class="author vcard"><span class="screen-reader-text">%1$s </span><a class="url fn n" href="%2$s">%3$s</a></span></span>', _x( 'Author', 'Used before post author name.', 'directory-starter' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), get_the_author() ); } $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'directory-starter' ) ); if ( $categories_list ) { printf( '<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', _x( 'Categories', 'Used before category names.', 'directory-starter' ), $categories_list ); } $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'directory-starter' ) ); if ( $tags_list ) { printf( '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', _x( 'Tags', 'Used before tag names.', 'directory-starter' ), $tags_list ); } } if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) { $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), get_the_date(), esc_attr( get_the_modified_date( 'c' ) ), get_the_modified_date() ); printf( '<span class="posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>', _x( 'Posted on', 'Used before publish date.', 'directory-starter' ), esc_url( get_permalink() ), $time_string ); } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo '<span class="comments-link">'; comments_popup_link( __( 'Leave a comment', 'directory-starter' ), __( '1 Comment', 'directory-starter' ), __( '% Comments', 'directory-starter' ) ); echo '</span>'; } }
November 8, 2017 at 3:33 pm #404587There is not way to change that in the child theme at the moment.
Stiofan
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket