Blog post sidebar

This topic contains 11 replies, has 3 voices, and was last updated by  Stiofan O’Connor 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #404473

    Himadri Goswami
    Expired Member
    Post count: 86

    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 help

    #404480

    Kor
    Moderator
    Post count: 16516

    Hi Himadri,

    Could you check your blog posts and see if it’s what you’re looking for? https://ehospital.in/alopecia-treatment-options/

    Thanks!

    #404481

    Himadri Goswami
    Expired Member
    Post count: 86

    Yes, 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

    #404489

    Himadri Goswami
    Expired Member
    Post count: 86

    even it is appearing in https://ehospital.in/register/

    #404519

    Himadri Goswami
    Expired Member
    Post count: 86

    please ignore it. I am working on.

    Regards

    #404554

    Kor
    Moderator
    Post count: 16516

    Hi Himadri,

    Alright, let us know how it goes.

    Thanks!

    #404576

    Himadri Goswami
    Expired Member
    Post count: 86

    Okay done. I am only stuck in one thing.

    the blog sidebar shows list styles for recent reviews also. How to hide/remove it?

    https://ehospital.in/alopecia-treatment-options/

    #404580

    Kor
    Moderator
    Post count: 16516

    Hi Himadri,

    Use this custom CSS code below to fix it.

    
    
    ul.geodir_recent_reviews li {
        display:block!important;
    }
    #404581

    Himadri Goswami
    Expired Member
    Post count: 86

    Thanks,

    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?

    #404582

    Kor
    Moderator
    Post count: 16516

    Hi Himadri,

    May I know what changes did you make?

    Thanks!

    #404584

    Himadri Goswami
    Expired Member
    Post count: 86

    I added this for single post type printf(‘%s’, get_avatar( get_the_author_meta( ‘user_email’ ), 60 ));
    and changed the order of metas

    here 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>';
    	}
    }
    #404587

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There is not way to change that in the child theme at the moment.

    Stiofan

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket