Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter rgoldstein

    (@rgoldstein)

    Okay – fa icon was a bust despite the code being in and following your photo. But I’m back in my website. As for the slider. My front page is linked to a blank page under a business template. I don’t know if that changes anything but I did exactly as you directed and as you see here, the page doesn’t reflect that I’ve chosen a post with JUST a photo in it https://pho.to/AGFft . Thoughts? Is that what is preventing my fa-icon from updating as well as seen here: https://pho.to/AGFpB

    Thread Starter rgoldstein

    (@rgoldstein)

    Did what you said, still nothing. In addition, while adding that code I am now getting this error:
    Parse error: syntax error, unexpected ‘}’ in /home4/rgoldstein/public_html/wp-content/themes/health-center-lite/functions.php on line 61

    please help asap as now our website is now down, here is my code up past line 61….

    <?php /**Includes reqired resources here**/
    define(‘WEBRITI_TEMPLATE_DIR_URI’,get_template_directory_uri());
    define(‘WEBRITI_TEMPLATE_DIR’,get_template_directory());
    define(‘WEBRITI_THEME_FUNCTIONS_PATH’,WEBRITI_TEMPLATE_DIR.’/functions’);

    require_once(‘theme_setup_data.php’);
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/menu/default_menu_walker.php’ ); // for Default Menus
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/menu/webriti_nav_walker.php’ ); // for Custom Menus

    require_once( WEBRITI_THEME_FUNCTIONS_PATH . ‘/scripts/scripts.php’ ); // all js and css file for health-center
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/commentbox/comment-function.php’ ); //for comments
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/widget/custom-sidebar.php’ ); //for widget register
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/font/font.php’); //Google Font

    // Health Info Page
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/health-info/welcome-screen.php’);

    //Feature Page Widget
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/widget/wbr-register-page-widget.php’ );

    //Latest news Widget
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/widget/wbr-resent-news-widget.php’ );

    //Customizer
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/customizer/customizer_header.php’);
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/customizer/customizer_copyright.php’);
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/customizer/slider-panel.php’);
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/customizer/service-panel.php’);
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/customizer/project-panel.php’);
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/customizer/faq-panel.php’);
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/customizer/recent_news-panel.php’);
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/customizer/callout-panel.php’);
    require( WEBRITI_THEME_FUNCTIONS_PATH . ‘/customizer/customizer-pro.php’);

    add_filter( ‘icon_post_type’, ‘icon_post_type_callback’, 10, 1 );
    //content width
    if ( ! isset( $content_width ) ) $content_width = 900;
    //wp title tag starts here
    function hc_head( $title, $sep )
    { global $paged, $page;
    if ( is_feed() )
    return $title;
    // Add the site name.
    $title .= get_bloginfo( ‘name’ );
    // Add the site description for the home/front page.
    $site_description = get_bloginfo( ‘description’ );
    if ( $site_description && ( is_home() || is_front_page() ) )
    $title = “$title $sep $site_description”;
    // Add a page number if necessary.
    if ( $paged >= 2 || $page >= 2 )
    $title = “$title $sep ” . sprintf( _e( ‘Page’, ‘health-center-lite’ ), max( $paged, $page ) );
    return $title;

    add_filter( ‘wp_title’, ‘hc_head’, 10,2 );

    add_filter( ‘icon_post_type’, ‘icon_post_type_callback’, 10, 1 );

    add_action( ‘after_setup_theme’, ‘hc_setup’ );
    function hc_setup()

    Thread Starter rgoldstein

    (@rgoldstein)

    In addition, I did add the plugin for the fa-icons but where am I adding the code, I’m not clear on what page is designated as the front page since it was something I was working off the customization before…

    Thread Starter rgoldstein

    (@rgoldstein)

    Did everything you said and now I’m without a photo on my front page. Made the post with just the picture, posted it, customized, don’t have the hide slider box checked and selected the blog post with the photo. What am I doing wrong?

    Thread Starter rgoldstein

    (@rgoldstein)

    Lisa, you’re a god send. Thanks so much!

    Thread Starter rgoldstein

    (@rgoldstein)

    Yeah, that’s 100% over my head, could you ELI5 it for me? I also lost my ability to change the homepage picture (at all) in the slider and I need to upload a new picture and literally have no idea how to do that now…

    Thread Starter rgoldstein

    (@rgoldstein)

    Thank you for the replies! I fixed the header and changed all the echos but then when I got to the sidebar, I didn’t have that line of code you mentioned – this is all I have…

    <?php
    //Template Name:Blog With Right Sidebar
    get_header(); ?>
    <!– HC Page Header Section –>
    <div class=”container”>
    <div class=”row”>
    <div class=”hc_page_header_area”>
    <h1><?php the_title(); ?></h1>
    </div>
    </div>
    </div>
    <!– /HC Page Header Section –>
    <!– HC Blog right Sidebar Section –>
    <div class=”container”>
    <div class=”row hc_blog_wrapper”>
    <!–Blog Content–>
    <div class=”<?php if( is_active_sidebar(‘sidebar-primary’)) { echo “col-md-9”; } else { echo “col-md-12″; } ?>”>
    <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    $args = array( ‘post_type’ => ‘post’,’paged’=>$paged);
    $post_type_data = new WP_Query( $args );
    while($post_type_data->have_posts()):
    $post_type_data->the_post();
    global $more;
    $more = 0; ?>
    <div class=”hc_blog_section” id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <div class=”hc_post_date”>
    <span class=”date”><?php echo get_the_date(‘j’); ?></span>
    <h6><?php echo the_time(‘M’); ?></h6>
    <span class=”year”><?php echo the_time(‘Y’); ?></span>
    </div>
    <div class=”hc_post_title_wrapper”>
    <h2>” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
    <div class=”hc_post_detail”>
    “><i class=”fa fa-user”></i><?php echo get_the_author(); ?>
    <i class=”fa fa-comments”></i><?php comments_number( ‘No Comments’, ‘one comments’, ‘% comments’ ); ?>
    <?php if(get_the_tag_list() != ”) { ?>
    <div class=”hc_tags”>
    <i class=”fa fa-tags”></i>“><?php the_tags(”, ‘, ‘, ‘
    ‘); ?>

    </div>
    <?php } ?>
    </div>
    </div>
    <div class=”clear”></div>
    <div class=”hc_blog_post_img”>
    <?php $defalt_arg =array(‘class’ => “img-responsive”); ?>
    <?php if(has_post_thumbnail()): ?>
    “>
    <?php the_post_thumbnail(”, $defalt_arg); ?>

    <?php endif; ?>
    </div>
    <div class=”hc_blog_post_content”>
    <p><?php the_content( __( ‘Read More’ , ‘health-center-lite’ ) ); ?></p>
    </div>
    </div>
    <?php endwhile; ?>
    <div class=”hc_blog_pagination”>
    <div class=”hc_blog_pagi”>
    <?php previous_posts_link( __(‘<span class=”meta-nav”>←</span> Older posts’,’health-center-lite’) ); ?>
    <?php next_posts_link( __(‘<span class=”meta-nav”>←</span> Newer posts’,’health-center-lite’), $post_type_data->max_num_pages ); ?>
    </div>
    </div>
    </div>
    <?php get_sidebar(); ?>
    </div>
    </div>
    <?php get_footer(); ?>

    Thread Starter rgoldstein

    (@rgoldstein)

    If you click on any of the pages you’ll see the sidebar appear

    Thread Starter rgoldstein

    (@rgoldstein)

    Sorry, I meant to change the width of the entire right sidebar, if that wasn’t already clear. I tried looking into the width of the sidebar in the style.css file but after messing around I couldn’t do anything. Anyway, the site is https://www.goldsteindental.org thanks!

Viewing 9 replies - 1 through 9 (of 9 total)