Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)
  • Thread Starter domesticgood

    (@domesticgood)

    Yep, that’s what I did. All the video thumbnails are working now. Thanks again for all your help!

    Thread Starter domesticgood

    (@domesticgood)

    Thanks! Made the changes and got this error at the bottom of the page when it loaded:

    Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in /home/blogdo7/public_html/wp-content/themes/hueman-child-master 2/inc/related-posts.php on line 48

    Here’s is my updated code in the /inc/related-posts.php

    <?php $related = alx_related_posts(); ?>
    
    <?php if ( $related->have_posts() ): ?>
    
    <h4 class="heading">
    	<i class="fa fa-hand-o-right"></i><?php _e('You may also like...','hueman'); ?>
    </h4>
    
    <ul class="related-posts group">
    
    // INSERT VIDEO THUMBNAIL ON RECOMMENDED VIDEO POSTS
    	<?php if ( has_post_format( 'video' ) ): ?>
    	<?php get_template_part('inc/post-formats'); ?>
    <?php else : ?>			
    
      <div class="post-thumbnail">
        <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
          <?php if ( has_post_thumbnail() ): ?>
            <?php the_post_thumbnail('thumb-medium'); ?>
          <?php elseif ( ot_get_option('placeholder') != 'off' ): ?>
            <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
          <?php endif; ?>
          <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
          <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
          <?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-star"></i></span>'; ?>
        </a>
        <?php if ( comments_open() && ( ot_get_option( 'comment-count' ) != 'off' ) ): ?>
          <a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a>
        <?php endif; ?>
      </div><!--/.post-thumbnail-->
    
    <?php endif; ?>
    
    			<div class="related-inner">
    
    				<h4 class="post-title">
    					<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
    				</h4><!--/.post-title-->
    
    				<div class="post-meta group">
    					<p class="post-date"><?php the_time('j M, Y'); ?></p>
    				</div><!--/.post-meta-->
    
    			</div><!--/.related-inner-->
    
    		</article>
    	</li><!--/.related-->
    	<?php endwhile; ?>
    
    </ul><!--/.post-related-->
    <?php endif; ?>
    
    <?php wp_reset_query(); ?>
    Thread Starter domesticgood

    (@domesticgood)

    That’s it…YAY!!! You my friend are a hero with the patience of a saint. Thanks for working with this newb.

    So, if you’re not tired of me and this thread yet…how would we get the recommendation at the bottom of the post to display the video thumbnail too?

    Thread Starter domesticgood

    (@domesticgood)

    The edited alx-posts.php is in the child theme folder.

    Thread Starter domesticgood

    (@domesticgood)

    I deactivated all my plugins and got the same warning and error message.

    Thread Starter domesticgood

    (@domesticgood)

    I looked at my text editor and made some changes to the settings to be plain text. I recreated the functions.php and got a different set of errors when I uploaded via FTP:

    Warning: require_once(/home/blogdo7/public_html/wp-content/themes/hueman-child-master 2/functions/widgets/alx-posts.php): failed to open stream: No such file or directory in /home/blogdo7/public_html/wp-includes/template.php on line 501

    Fatal error: require_once(): Failed opening required ‘/home/blogdo7/public_html/wp-content/themes/hueman-child-master 2/functions/widgets/alx-posts.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/blogdo7/public_html/wp-includes/template.php on line 501

    Thread Starter domesticgood

    (@domesticgood)

    I couldn’t figure out how to check the permission on the theme folder.

    Thread Starter domesticgood

    (@domesticgood)

    I was able to check the permission on functions.php … iowner has read and write permissions checked … execute and SUID are unchecked

    Thread Starter domesticgood

    (@domesticgood)

    Sorry, I’m not sure how to do that. Can you walk me through it?

    Thread Starter domesticgood

    (@domesticgood)

    My cpanel indicates that I’m running PHP 5.4. I have the option to use any one of 5.2 – 5.6

    Thread Starter domesticgood

    (@domesticgood)

    Here’s the error: Parse error: syntax error, unexpected ‘&’ in /home/blogdo7/public_html/wp-content/themes/hueman-child-master 2/functions.php on line 10

    It seems that it’s issue with the code has moved to line 10 since // were added to line 7

    Thread Starter domesticgood

    (@domesticgood)

    Ok, so here’s what I loaded via FTP and I still get the error:

    <?php
    /* ------------------------------------------------------------------------- *
     *  Custom functions
    /* ------------------------------------------------------------------------- */
    function alx_load() {
                    // Load theme languages
                    // load_theme_textdomain( 'hueman', get_template_directory().'/languages' );
    
                    // Load theme options and meta boxes
                    load_template( get_template_directory() . '/functions/theme-options.php' );
                    load_template( get_template_directory() . '/functions/meta-boxes.php' );
    
                    // Load custom widgets
                    load_template( get_template_directory() . '/functions/widgets/alx-tabs.php' );
                    load_template( get_template_directory() . '/functions/widgets/alx-video.php' );
                    load_template( get_stylesheet_directory() . '/functions/widgets/alx-posts.php' );
    
                    // Load custom shortcodes
                    load_template( get_template_directory() . '/functions/shortcodes.php' );
    
                    // Load dynamic styles
                    load_template( get_template_directory() . '/functions/dynamic-styles.php' );
    
                    // Load TGM plugin activation
                    load_template( get_template_directory() . '/functions/class-tgm-plugin-activation.php' );
            }

    So this might have something to do with my host? What should I tell them to look into?

    Thread Starter domesticgood

    (@domesticgood)

    When I loaded the updated functions.php via FTP, I am not able to log on to the WP admin to check the site live.

    So then I reverted to original functions.php via FTP and once back into to admin panel, I updated the file through the editor and also received the error and not able to access admin panel.

    Thread Starter domesticgood

    (@domesticgood)

    When I post the updated code to functions.php, I am not able to login through the admin panel, so I’m not sure how to check if they match at that point.

    I replaced functions.php with original, checked the file via the editor and it was reverted back to the original. I then added the code to the functions.php directly and got the error again.

    Thread Starter domesticgood

    (@domesticgood)

    After I uploaded functions.php via FTP the error appears when I refresh the blog homepage.

Viewing 15 replies - 1 through 15 (of 22 total)