badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Chama

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Service Icon Links #26296
    Chama
    Participant

    And the read more link? On my page the read more links to the homepage. I’ve made some tests/Coding yesterday and I’ve used the permalink() function.

    <div class="<?php echo $service_class; ?>">
    			<div class="service-item clearfix">
    				<a href="<?php the_permalink(); ?>">
    					<?php
    					if ( has_post_thumbnail() ) {
    						echo '<div class="service-icon">'.get_the_post_thumbnail( $post->ID, 'medium' ).'</div>';
    					}
    					?>
    				</a>
    				<h3 class="service-title">
    					<a href="<?php the_permalink(); ?>">
    						<?php echo $page_title; ?>
    					</a>
    				</h3>
    
    				<article>
    					<?php the_excerpt(); ?> //above this line permalink(); works fine, below it links to the page domain
    				</article>
    				<!-- .service-item 			-->
    					<?php if( !empty( $options[ 'post_excerpt_more_text' ] ) ) { ?>
    				<a href="<?php the_permalink(); ?>" class="more-link">
    					<?php echo $options[ 'post_excerpt_more_text' ]; ?>
    				</a>
    				<?php } ?>
    
    		</div>
    in reply to: Collums #26261
    Chama
    Participant

    It was a plugin witch came with your installation that didn’t work. Now I use your css styles.

    in reply to: Service Icon Links #26260
    Chama
    Participant

    Hi.

    Could you please let us know how to link services with their pages?

    It doesn’t make any sense to link them to our homepage…

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)