Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter costumedesign

    (@costumedesign)

    Thanks I will! Have a great day!

    Thread Starter costumedesign

    (@costumedesign)

    I’ve added a new thumbnail now (which isn’t in the slider) and the title shows up perfectly! This was exactly what I was hoping for. You’v really helped me, thank Emily!

    Thread Starter costumedesign

    (@costumedesign)

    Wow it works! You’re amazing!!

    But if I’m right the title that appears (on the thumbnails) is linked to the images in the slider? Right? Because later on I’m going to add images which aren’t in the slider but need a title as well. How can I link the title that is shown to the image-title instead of to the title which is shown in the slider? Or am I wrong about this?

    Thread Starter costumedesign

    (@costumedesign)

    Yes of course I’m relating to the images on this page. I made this using a NextGen gallery, perhaps that makes a difference.

    Thread Starter costumedesign

    (@costumedesign)

    Perfect! Thanks for your quick response, it works!

    The problem now is that only the small text links you to the URL which I put in. It would be great if the whole image was clickable.

    Is there a solution for this?

    Thanks again!

    Thread Starter costumedesign

    (@costumedesign)

    Oh en this is the link to my website

    You should take a look at this:

    https://ww.wp.xz.cn/support/topic/custom-field-http-links-not-working?replies=19

    It worked for me! Links are working perfectly now.

    I’m trying to do the same. I tried to follow the guide from the link carlosguadian posted, but in the files they’re referring to I don’t find the lines which I’m supposed to change.. .

    Thread Starter costumedesign

    (@costumedesign)

    Thanks for your reply! I’m going to ask my question on that forum!

    Thread Starter costumedesign

    (@costumedesign)

    Hi MrYawn,

    I tried to look at that but wasn’t really sure what to move. This is the index.php. The slider is a function which I can switch on and off in the “Theme Options”.

    <?php get_header(); ?>
    
    <?php
    if( 'portfolio' == get_post_type() )  {
    	$cat_title = __('Portfolio' ,'InterStellar');
    	$cat_desc = '';
    } ?>
    
    <?php
    if( is_category() )  {
    	$cat_title = single_cat_title('',false);
    	$cat_desc = category_description();
    } ?>
    
     <div id="index-page">
    	<?php if ( isset($cat_title) && $cat_title <> '') { ?>
    		<h1 class="title"><?php echo $cat_title; ?></h1>
    	<?php } ?>
    		<?php if ( isset($cat_desc) && $cat_desc <> '') { ?>
    	        <span class="subheader"><?php echo $cat_desc; ?></span>
    	    <?php } ?>      
    
        <div id="left" <?php if ( 'portfolio' == get_post_type() ) echo 'class="full-width"'; ?>>
    		<?php if (have_posts()) : ?>
    
    			<?php if ( 'portfolio' == get_post_type() ) { ?>
    				  	<div class="galleries">
    						<div class="<?php echo $options['portfolio_layout'] . '-column'; ?>">
    			<?php } ?>
    
    			<!-- The Loop -->
        		<?php while (have_posts()) : the_post(); ?>
    
    				<?php if ( 'portfolio' == get_post_type() ) { ?>
    
    					<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    						<div class="gallery-image-wrap">
    					            <?php if ( has_post_thumbnail() ) { ?>
    
    									<?php $thumbid = get_post_thumbnail_id($post->ID);
    										$img = wp_get_attachment_image_src($thumbid,'full');
    										$img['title'] = get_the_title($thumbid); ?>
    
    											<?php the_post_thumbnail("gallery-thumb"); ?>
    
    										<a href="<?php echo $img[0]; ?>" class="zoom-icon" rel="shadowbox" ></a>
    
    										<a href="<?php the_permalink(); ?>" class="link-icon"></a>
    				        		<?php } else { ?>
    										<a href="<?php the_permalink(); ?>">
    										<?php echo '<img src="'.get_stylesheet_directory_uri().'/images/no-portfolio-archive.png" class="wp-post-image"/>'; ?>			</a>
    								<?php } ?>
    						<?php $args = array(
    							'post_type' 	=> 'attachment',
    							'numberposts' 	=> -1,
    							'post_status' 	=> null,
    							'post_parent' 	=> $post->ID,
    							'post_mime_type'=> 'image',
    							'orderby'		=> 'menu_order',
    							'order'			=> 'ASC'
    						);
    						$attachments = get_posts($args);
    						$count = count($attachments); ?>
    
    						<?php if ( $count > 1 ) { ?>
    							<span class="image-count"><?php echo $count . __(' Images', 'InterStellar'); ?></span>
    						<?php } ?>
    						</div>
    						<h2 class="gallery-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    						<?php the_excerpt(); ?>
    					</article><!-- #post-<?php the_ID(); ?> -->
    
    				<?php } else { ?>
    
        	 		<?php get_template_part( 'content', get_post_format() ); ?>
    
    				<?php } ?>		
    
      			<?php endwhile; ?>
    
    			<?php if ( 'portfolio' == get_post_type() ) { ?>
    						</div>
    					</div> <!-- .galleries -->
    			<?php } ?>
    
    			<?php if(function_exists('wp_pagenavi')) { ?>
    
    					<?php wp_pagenavi(); ?>
    
    				<?php } else { ?> 
    
    					<?php get_template_part( 'navigation', 'index' ); ?>
    
    				<?php } else : ?>
    
    					<?php get_template_part( 'no-results', 'index' ); ?>
    
    				<?php endif; ?>
    
        </div> <!--  #left  -->
    	<?php if ( 'portfolio' != get_post_type() ) get_sidebar(); ?>
    </div>   <!--  #index-page  -->
    <?php get_footer();?>
    Thread Starter costumedesign

    (@costumedesign)

    Yes! Thanks again. You really helped me out.

    Have a nice day!

    Thread Starter costumedesign

    (@costumedesign)

    Perfect!! Thanks, it works!
    But now I’ve got a new problem: the text that shows when you put your mouse on the image stays on the left, it doesn’t change with the position of the image. Any idea how to fix this? Thanks so much again.

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