Home Forums Aside WordPress Theme how to remove category list from blog post

Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #5419
    saibhaidupare
    Participant

    1. I want to remove right hand side category list from blog post.

    Instead of category list i like to show only blog post names.

    2. Protected page is not asking password again on same device or same computer. Password window appear one time only. Password should be required every time while oprning page on same device/computer also.

    3.Procted page showing two password Windows on same page.

    4. Is it possible to add social media share button on images.

    #5424
    SeaTheme
    Keymaster
    Purchased
    Expired

    1. I am not clear where you pointed, better paste your page url or screenshot

    2./3. plz leave your page url and password

    4. There is not the feature.

    #5428
    saibhaidupare
    Participant
    This reply has been marked as private.
    #5430
    SeaTheme
    Keymaster
    Purchased
    Expired

    1. login the wp-admin, go to Appearance/Widgets on left bar, click remove on Categories panel (screenshot)

    2. sorry, this is a bug, the quick fix way:
    download the file, unzip it
    – upload and replace the interface-function.php to folder byFTP
    ../functions/interface/

    #5432
    saibhaidupare
    Participant
    This reply has been marked as private.
    #5447
    SeaTheme
    Keymaster
    Purchased
    Expired

    Because there is cache in you browser. Please try to use the private(or open Incognito tab in Chrome) window, the password box will be shown.

    #5483
    saibhaidupare
    Participant
    This reply has been marked as private.
    #5484
    SeaTheme
    Keymaster
    Purchased
    Expired

    The password box will not be shown if it has been entered. In a browser cleaned the cache, it’ll be shown. I recorded a video for the pass option, please check it. It is wordpress’s default rule. You could test it in wordpress default theme(like: Twenty Fourteen), there is the same result.

    #5485
    saibhaidupare
    Participant
    This reply has been marked as private.
    #5487
    SeaTheme
    Keymaster
    Purchased
    Expired

    Your css code is for left sidebar(main menu bar) not right sidebar, please make sure.

    If you want hide the right sidebar, you could edit Page or Post, set the “Without Sidebar” in Page options / Sidebar. (check screenshot)

    #5490
    saibhaidupare
    Participant
    This reply has been marked as private.
    #5495
    SeaTheme
    Keymaster
    Purchased
    Expired

    Which pages you want to hide left bar? Better list them please.
    Your code works for category blog only: http://bmdpix.com/category/blog/

    .category-blog #sidebar { display:none; }
    .category-blog #main-wrap { padding-left:0; }
    #5628
    saibhaidupare
    Participant

    please give me code for
    if I want remove left side bar (menu bar)
    for http://bmdpix.com/blog/
    and all post under catogory of blog
    http://bmdpix.com/best-nikon-lenses-for-wedding-photography/

    #5629
    SeaTheme
    Keymaster
    Purchased
    Expired

    This code is for http://bmdpix.com/blog/

    body.page-id-2068 #sidebar { display:none; }
    body.page-id-2068 #main-wrap { padding-left:0; }

    For all posts under catogory of blog, there is litter trouble. The blog category’s className could not be exported. You need login FTP to find ../functions/interface/interface-functions.php , add the function before the last line ?> :

    // add category nicenames in body and post class
    function category_id_class( $classes ) {
    	global $post;
    	foreach ( get_the_category( $post->ID ) as $category ) {
    		$classes[] = $category->category_nicename;
    	}
    	return $classes;
    }
    add_filter( 'body_class', 'category_id_class' );

    after added the function, you could use the css code:

    body.blog #sidebar { display:none; }
    body.blog #main-wrap { padding-left:0; }
    #5655
    saibhaidupare
    Participant

    Done !!! Thank you

    #5720
    saibhaidupare
    Participant

    some time and some peoples getting error as per below

    Warning: Cannot modify header information – headers already sent by (output started at /home/bmdpixco/public_html/wp-content/themes/aside/functions/interface/interface-functions.php:1) in /home/bmdpixco/public_html/wp-includes/pluggable.php on line 1179

    #5721
    SeaTheme
    Keymaster
    Purchased
    Expired

    Hi,

    I visited your site, i did not see the error. Try to close all plugins.
    Did you set the WP_DEBUG as true in wp-config.php?

    Best, Bwsm

    #5724
    saibhaidupare
    Participant

    no i didnt set anything in wp-config.php.

    #5725
    SeaTheme
    Keymaster
    Purchased
    Expired

    login ftp, check the wp-config.php in wordpress folder, find the define( ‘WP_DEBUG’….

    is true or false? better set as false

    #5727
    saibhaidupare
    Participant

    already false

    #5728
    saibhaidupare
    Participant

    i think this error start after update below codes

    For all posts under catogory of blog, there is litter trouble. The blog category’s className could not be exported. You need login FTP to find ../functions/interface/interface-functions.php , add the function before the last line ?> :

    // add category nicenames in body and post class
    function category_id_class( $classes ) {
    global $post;
    foreach ( get_the_category( $post->ID ) as $category ) {
    $classes[] = $category->category_nicename;
    }
    return $classes;
    }
    add_filter( ‘body_class’, ‘category_id_class’ );
    after added the function, you could use the css code:

    body.blog #sidebar { display:none; }
    body.blog #main-wrap { padding-left:0; }

    #5729
    SeaTheme
    Keymaster
    Purchased
    Expired

    Try to recover the ../functions/interface/interface-functions.php and find if there is the error

    #5730
    saibhaidupare
    Participant

    <?php
    /****************************************************************/
    /*
    /* Functions
    /*
    /****************************************************************/

    //Function Web Title
    function ux_interface_webtitle($title, $sep){
    global $paged, $page;

    if(is_feed() || is_search()){
    return $title;
    }

    $title .= get_bloginfo(‘name’);

    $site_description = get_bloginfo(‘description’, ‘display’);
    if($site_description &&(is_home() || is_front_page())){
    $title = “$title $sep $site_description”;
    }

    if($paged >= 2 || $page >= 2){
    $title = “$title $sep ” . sprintf(__(‘Page %s’, ‘ux’), max($paged, $page));
    }

    return $title;
    }
    add_filter(‘wp_title’,’ux_interface_webtitle’,10, 2);

    //Function Web Head Viewport
    function ux_interface_webhead_viewport(){
    $enable_responsive = ux_get_option(‘theme_option_mobile_enable_responsive’);

    if($enable_responsive){ ?>
    <meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
    <?php
    }
    }

    //Function Web Head Favicon
    function ux_interface_webhead_favicon(){
    $favicon_icon = ux_get_option(‘theme_option_custom_favicon’);
    $mobile_icon = ux_get_option(‘theme_option_mobile_icon’);

    $favicon_icon = $favicon_icon ? $favicon_icon : UX_LOCAL_URL . ‘/img/favicon.ico’;
    $mobile_icon = $mobile_icon ? $mobile_icon : UX_LOCAL_URL . ‘/img/favicon.ico’; ?>

    <link rel=”shortcut icon” href=”<?php echo $favicon_icon; ?>”>
    <link rel=”apple-touch-icon-precomposed” href=”<?php echo $mobile_icon; ?>”>
    <?php
    }

    //Function Logo
    function ux_interface_logo($key){
    $enable_text_logo = ux_get_option(‘theme_option_enable_text_logo’);
    $text_logo = ux_get_option(‘theme_option_text_logo’);
    $custom_logo = ux_get_option(‘theme_option_custom_logo’);
    $custom_logo = $custom_logo ? $custom_logo : UX_LOCAL_URL . ‘/img/logo.png’;
    $mobile_custom_logo = ux_get_option(‘theme_option_mobile_custom_logo’);
    $mobile_custom_logo = $mobile_custom_logo ? $mobile_custom_logo : $custom_logo;

    $logo = $key == ‘mobile’ ? $mobile_custom_logo : $custom_logo;
    $output = ”;

    switch($key){
    case ‘mobile’:
    $output .= ‘<h1 id=”logo-mobile”>‘;
    $output .= $enable_text_logo ? $text_logo : ‘' . get_bloginfo('name') . '‘;
    $output .= ‘
    </h1>’;
    break;

    case ‘page’:
    $output .= ‘<h1 id=”logo-page”>‘;
    $output .= $enable_text_logo ? $text_logo : ‘' . get_bloginfo('name') . '‘;
    $output .= ‘
    </h1>’;
    break;

    case ‘loading’:
    $output .= ‘<div class=”site-loading-logo centered-ux”>’;
    $output .= $enable_text_logo ? $text_logo : ‘' . get_bloginfo('name') . '‘;
    $output .= ‘</div>’;
    break;

    default:
    $output .= ‘<h1 id=”logo”>‘;
    $output .= $enable_text_logo ? $text_logo : ‘' . get_bloginfo('name') . '‘;
    $output .= ‘
    </h1>’;
    break;
    }

    echo $output;
    }

    //Function body class
    function ux_interface_body_class(){
    $responsive = ux_get_option(‘theme_option_mobile_enable_responsive’) ? ‘ responsive-ux’ : false;
    $nicescroll = ux_get_option(‘theme_option_enable_nice_scroll’) ? ‘ nicescroll-ux’ : false;
    $full_line = ux_get_option(‘theme_option_full_line’) ? ‘ full-line’ : ‘ boxed-line’;
    $portfolio_layout = false;

    if(is_page()){
    $portfolio_layout = ux_enable_portfolio_template() ? ‘page-portfolio-template-layout-ux’ : false;
    }

    body_class($responsive . $nicescroll . $full_line . ‘ aside-layout-ux ‘ . $portfolio_layout);
    }

    //Function sidebar class
    function ux_interface_sidebar_class(){
    $sidebar = ux_get_post_meta(get_the_ID(), ‘theme_meta_sidebar’);
    $pb_switch = get_post_meta(get_the_ID(), ‘ux-pb-switch’, true);
    $output = ‘span8’;

    if(is_singular(‘post’) || is_page()){
    if(ux_enable_portfolio_template() || ux_enable_featured_image() || ux_enable_slider()){
    $output = false;
    }else{
    switch($sidebar){
    case ‘right-sidebar’: $output = ‘span8’; break;
    case ‘left-sidebar’: $output = ‘span8 pull-right’; break;
    case ‘without-sidebar’: $output = $pb_switch == ‘pagebuilder’ ? false : $output = ‘container’; break;
    }
    }
    }

    echo $output;
    }

    //Function Space class
    function ux_interface_space_class(){
    $output = false;

    //** Show Top Spacer
    $top_spacer = ux_get_post_meta(get_the_ID(), ‘theme_meta_show_top_spacer’);
    $top_spacer = $top_spacer ? ‘top-space ‘ : false;

    //** Show Bottom Spacer
    $bottom_spacer = ux_get_post_meta(get_the_ID(), ‘theme_meta_show_bottom_spacer’);
    $bottom_spacer = $bottom_spacer ? ‘bottom-space ‘ : false;

    if(!ux_enable_portfolio_template() && !ux_enable_featured_image() && !ux_enable_slider()){
    $output .= $top_spacer . $bottom_spacer;
    }

    echo $output;

    }

    function ux_interface_pb_class(){
    $output = false;
    if(ux_enable_pb() && is_single()){
    $output = ‘single-with-pagebuild ‘;
    }
    echo $output;
    }

    //Function Social
    function ux_interface_social(){
    $social_medias = ux_get_option(‘theme_option_show_social_medias’);
    if($social_medias && isset($social_medias[‘icontype’])){
    $icon_type = $social_medias[‘icontype’]; ?>

    <!–Social icons–>
    <div class=”social-icons-sidebar”>
    <?php foreach($icon_type as $num => $type){
    $icon = $social_medias[‘icon’][$num];
    $url = $social_medias[‘url’][$num];
    $tip = $social_medias[‘tip’][$num]; ?>

    ” href=”<?php echo esc_url($url); ?>” class=”icons-sidebar-unit”>
    <?php if($type == ‘fontawesome’){ ?>
    <i class=”<?php echo $icon; ?>”></i>
    <?php }elseif($type == ‘user’){ ?>
    ” />
    <?php } ?>

    <?php } ?>
    </div>
    <?php

    } //End if $social_medias
    }

    //Function Copyright
    function ux_interface_copyright(){
    $footer_copyright = ux_get_option(‘theme_option_copyright’);
    echo $footer_copyright = $footer_copyright ? $footer_copyright : ‘Copyright uiueux.com’;
    }

    //Function pagination
    function ux_interface_pagination($pages = ”, $range = 3){
    global $wp_query, $wp_rewrite;

    $wp_query->query_vars[‘paged’] > 1 ? $current = $wp_query->query_vars[‘paged’] : $current = 1;

    echo ‘<div class=”clearfix pagenums”>’;
    echo paginate_links( array(
    ‘base’ => @add_query_arg(‘paged’,’%#%’),
    ‘format’ => ”,
    ‘current’ => $current,
    ‘total’ => $wp_query->max_num_pages,
    ‘mid_size’ => $range
    ));
    echo ‘</div>’;
    }

    //Function Pagebuilder
    function ux_interface_pagebuilder(){

    if(ux_enable_pb() && !ux_enable_portfolio_template() && !ux_enable_featured_image() && !ux_enable_slider()){
    if(post_password_required()){
    echo get_the_password_form();
    return;
    }else{
    echo ‘<div class=”pagebuilder-wrap”>’;
    do_action(‘ux-theme-single-pagebuilder’);
    echo ‘</div>’;
    }
    }

    }

    //Function Slider Contetnt
    function ux_slider_content($slider=”){
    $ux_slider_value = ux_get_post_meta(get_the_ID(), ‘theme_meta_page_portfolio_slider’);

    if($ux_slider_value){
    switch($slider){
    case ‘revolution’:
    echo do_shortcode(‘[rev_slider ‘ . $ux_slider_value . ‘]’);
    break;
    }
    }
    }

    /****************************************************************/
    /*
    /* Condition
    /*
    /****************************************************************/

    //Condition enable sidebar
    function ux_enable_sidebar(){
    $sidebar = true;
    if(is_singular(‘post’) || is_page()){
    $sidebar = ux_get_post_meta(get_the_ID(), ‘theme_meta_sidebar’);

    //** not portfolio template get sidebar template
    if(ux_enable_portfolio_template() || $sidebar == ‘without-sidebar’ || ux_enable_featured_image() || ux_enable_slider()){
    $sidebar = false;
    }
    }
    return $sidebar;
    }

    //Condition enable pagebuilder
    function ux_enable_pb(){
    $switch = false;

    if(is_singular(‘post’) || is_page()){
    $pb_switch = get_post_meta(get_the_ID(), ‘ux-pb-switch’, true);

    if($pb_switch == ‘pagebuilder’){
    $switch = true;
    }
    }

    return $switch;

    }

    //Condition enable portfolio template
    function ux_enable_portfolio_template(){
    $switch = false;

    if(is_singular(‘post’)){
    //** get portfolio template meta
    $portfolio_template_enble = ux_get_post_meta(get_the_ID(), ‘theme_meta_enable_portfolio_template’);

    if($portfolio_template_enble ){
    $switch = true;
    }
    }

    if(is_page()){
    //** get portfolio template meta
    $portfolio_template_enble = ux_get_post_meta(get_the_ID(), ‘theme_meta_enable_portfolio_template’);
    $portfolio_template = ux_get_post_meta(get_the_ID(), ‘theme_meta_page_portfolio_template’);

    if( $portfolio_template_enble && $portfolio_template == ‘fullscreen_post_slider’ ){
    $switch = true;
    }
    }
    return $switch;

    }

    //Condition enable feaured image layout
    function ux_enable_featured_image(){
    $switch = false;

    if(is_page()){
    //** get meta
    $featured_image = ux_get_post_meta(get_the_ID(), ‘theme_meta_page_portfolio_template’);
    $papge_template_enble = ux_get_post_meta(get_the_ID(), ‘theme_meta_enable_portfolio_template’);
    if($featured_image == ‘show_featured_image’ && $papge_template_enble ){
    $switch = true;
    }
    }

    return $switch;

    }

    //Condition enable enble slider
    function ux_enable_slider(){
    $switch = false;

    if(is_page()){
    //** get meta
    $slider = ux_get_post_meta(get_the_ID(), ‘theme_meta_page_portfolio_template’);
    $papge_template_enble = ux_get_post_meta(get_the_ID(), ‘theme_meta_enable_portfolio_template’);

    if( $slider == ‘show_slider’ && $papge_template_enble ){
    $switch = true;
    }
    }

    return $switch;

    }

    /****************************************************************/
    /*
    /* Template
    /*
    /****************************************************************/

    //Template Mobile Meta
    function ux_interface_mobilemeta(){
    ux_get_template_part(‘mobile’, ‘meta’);
    }

    //Template Sidebar
    function ux_interface_sidebar(){
    get_sidebar();
    }

    //Template Sidebar Weiget
    function ux_interface_sidebar_widget(){
    ux_get_template_part(‘sidebar’, ‘widget’);
    }

    //Template Header
    function ux_interface_header(){
    //if(is_singular(‘post’) || is_page()){
    //$topbar_for_pages = ux_get_option(‘theme_option_enable_floating_topbar_for_pages’);
    //$topbar_for_posts = ux_get_option(‘theme_option_enable_floating_topbar_for_posts’);

    //if($topbar_for_pages || $topbar_for_posts){
    ux_get_template_part(‘header’, ‘wrap’);
    //}
    //}
    }

    //Template Archive loop
    function ux_interface_archive_loop(){
    ux_get_template_part(‘archive’, ‘loop’);
    }

    //Template Title bar
    function ux_interface_title_bar(){
    ux_get_template_part(‘title’, ‘bar’);
    }

    //Template Title bar for page
    function ux_interface_page_title_bar(){
    if(!ux_enable_portfolio_template()){
    if(is_page()){
    //** Show Title Bar
    $show_title_bar = ux_get_post_meta(get_the_ID(), ‘theme_meta_show_title_bar’);
    $portfolio_template_enble = ux_get_post_meta(get_the_ID(), ‘theme_meta_enable_portfolio_template’);

    if($show_title_bar && !$portfolio_template_enble){
    ux_interface_title_bar();
    }
    }elseif(is_single()){

    if(!ux_enable_portfolio_template()){
    ux_interface_title_bar();
    }
    }
    }
    }

    //Template Page portfolio
    function ux_interface_page_portfolio(){
    if(ux_enable_portfolio_template()){
    ux_get_template_part(‘page’, ‘portfolio’);
    }
    }

    //Template Page featured image
    function ux_interface_page_featured_image(){
    if(ux_enable_featured_image()){
    ux_get_template_part(‘page’, ‘featured-image’);
    }
    }

    //Template Page slider
    function ux_interface_page_enable_slider(){
    if(ux_enable_slider()){
    ux_get_template_part(‘page’, ‘show-slider’);;
    }
    }

    //Template page content
    function ux_interface_page_content(){
    if(!ux_enable_pb() && !ux_enable_portfolio_template() && !ux_enable_featured_image() && !ux_enable_slider() ){ ?>

    <div class=”entry”>
    <?php the_content(); ?>
    </div><!–End entry–>
    <?php
    }
    }

    //Template Single portfolio
    function ux_interface_single_portfolio(){
    if(ux_enable_portfolio_template()){
    ux_get_template_part(‘single’, ‘portfolio’);
    }
    }

    //Template Single content
    function ux_interface_single_comment(){
    if(!ux_enable_portfolio_template()){
    //** comment before if enable pb set class container
    if(ux_enable_pb() && !ux_enable_sidebar()){
    echo ‘<div class=”container”>’;
    }

    if(comments_open(get_the_ID())){
    comments_template();
    }

    //** comment after if enable pb set class container end
    if(ux_enable_pb() && !ux_enable_sidebar()){
    echo ‘</div>’;
    }
    }
    }

    //Template Single content
    function ux_interface_single_content(){
    if(!ux_enable_pb() && !ux_enable_portfolio_template()){
    $post_format = !get_post_format() ? ‘standard’ : get_post_format();

    //** post format
    if(is_singular(‘post’) && $post_format != ‘video’){
    ux_get_template_part(‘post-format’, $post_format);
    }

    if(is_singular(‘post’) && $post_format = ‘video’){
    echo ‘<div class=”entry”>’;
    the_content(); wp_link_pages();
    echo ‘</div>’;
    }

    //** post type for clients, faqs, jobs, team, testimonials
    if(!is_singular(‘post’)){
    ux_get_template_part(‘post-type’, get_post_type());
    }
    }
    }

    //Template Single Format Video
    function ux_interface_single_format_video(){
    if(!ux_enable_pb()){
    $post_format = !get_post_format() ? ‘standard’ : get_post_format();
    //** post format
    if(is_singular(‘post’) && $post_format == ‘video’){
    ux_get_template_part(‘post-format’, $post_format);
    }
    }
    }

    //Template Single Portfolio Property
    function ux_interface_portfolio_property(){
    ux_get_template_part(‘single’, ‘portfolio-property’);
    }

    //Template Single Portfolio Related Post
    function ux_interface_portfolio_related(){
    //** get portfolio related
    $related = ux_get_post_meta(get_the_ID(), ‘theme_meta_enable_portfolio_related’);
    if($related){
    ux_get_template_part(‘single’, ‘portfolio-related’);
    }
    }

    //Template Page Before
    function ux_interface_page_before(){
    ux_get_template_part(‘page’, ‘before’);
    }

    //Template Page After
    function ux_interface_page_after(){
    ux_get_template_part(‘page’, ‘after’);
    }

    //Template Top image
    function ux_interface_top_image(){
    ux_get_template_part(‘top’, ‘image’);
    }

    //Template Site Loading
    function ux_interface_site_loading(){
    ux_get_template_part(‘site’, ‘loading’);
    }

    //Template Page Loading
    function ux_interface_page_loading(){
    ux_get_template_part(‘page’, ‘loading’);
    }
    // add category nicenames in body and post class
    function category_id_class( $classes ) {
    global $post;
    foreach ( get_the_category( $post->ID ) as $category ) {
    $classes[] = $category->category_nicename;
    }
    return $classes;
    }
    add_filter( ‘body_class’, ‘category_id_class’ );
    ?>

    #5732
    saibhaidupare
    Participant

    pls check this interface-function file

    #5735
    SeaTheme
    Keymaster
    Purchased
    Expired

    Please:
    – remove the code :

    // add category nicenames in body and post class
    function category_id_class( $classes ) {
    global $post;
    foreach ( get_the_category( $post->ID ) as $category ) {
    $classes[] = $category->category_nicename;
    }
    return $classes;
    }
    add_filter( ‘body_class’, ‘category_id_class’ );

    – or use the original file (download and unzip)

Viewing 25 posts - 1 through 25 (of 25 total)
  • You must be logged in to reply to this topic.