Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter paulmannone

    (@paulmannone)

    Thanks for trying! I’ll keep working on it.

    Thread Starter paulmannone

    (@paulmannone)

    This is the code in the widgets.php file:

    echo $before_widget; ?>
    			<?php
    			$j = 1;
     			while( $get_featured_pages->have_posts() ):$get_featured_pages->the_post();
    				$page_title = get_the_title();
    				if( $j % 2 == 1 && $j > 1 ) {
    					$service_class = "tg-one-third tg-after-two-blocks-clearfix";
    				}
    				elseif ( $j % 3 == 1 && $j > 1 ) {
    					$service_class = "tg-one-third tg-after-three-blocks-clearfix";
    				}
    				else {
    					$service_class = "tg-one-third";
    				}
    				if( $j % 2 == 0 ) { $service_class = $service_class.' tg-service-right'; }
    				else { $service_class = $service_class.' tg-service-left'; }
    				?>
    				<div class="<?php echo $service_class; ?>">
    					<?php echo $before_the_post_thumbnail; ?><a href="<?php the_permalink(); ?>">
    					<?php
    					if ( has_post_thumbnail() )  {
    						echo'<div class="service-image">'.get_the_post_thumbnail( $post->ID, 'featured' ).'</div>';
    					}
    					?></a>
    					<?php after_the_post_thumbnail; ?>
    					<?php echo $before_title; ?><a title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><?php echo $page_title; ?></a><?php echo $after_title; ?>
    					<?php the_excerpt(); ?>
    					<div class="more-link-wrap">
    						<a class="more-link" title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><?php _e( 'Read more','spacious' ); ?></a>
    					</div>
    				</div>
    				<?php $j++; ?>
    			<?php endwhile;
    	 		// Reset Post Data
     			wp_reset_query();
     			?>
    		<?php
    		echo $after_widget;

    Thread Starter paulmannone

    (@paulmannone)

    I don’t believe I have any caching, but I will look into that.
    As for the code you’re seeing, I see that too when I use the developer tools. However, the code that links to the images is in the widgets.php file.

    Thread Starter paulmannone

    (@paulmannone)

    Sorry, I should have been more clear. That image that you’re seeing is part of a slider. Each of those sections (Family, Property and Business) should have a individual featured image above them. Also, if it helps, they are called through a “get the post thumbnail” line of code.

    Also, I went to a new browser which I had not logged into the WordPress dashboard on, and none of the theme specific widgets are working (the ones that start with TG:, if you are familiar with the theme). It seems like these widgets do not load until I’ve logged in to the dashboard. Unfortunately, I can’t have every visitor login to the dashboard. Hahaha.

    Thanks for your help!

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