• Resolved cmarkham

    (@cmarkhamunomahaedu)


    If you just want the post slider to be an image carousel and not link to the post go into the index file and find this section. For me it was line 71 for the Forever theme. This might be transferable to other themes, just depends on the id or classes that are set in it.

    <div class="featured-post" id="featured-post-<?php echo $post_counter; ?>">
    								<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'forever' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
    									<?php the_post_thumbnail( 'large-feature' ); ?>
    								</a>

    Then comment out the ‘a’ tags like so…

    <div class="featured-post" id="featured-post-<?php echo $post_counter; ?>">
    <!--								<a href="--><?php //the_permalink(); ?><!--" title="--><?php //echo esc_attr( sprintf( __( 'Permalink to %s', 'forever' ), the_title_attribute( 'echo=0' ) ) ); ?><!--" rel="bookmark">-->
    									<?php the_post_thumbnail( 'large-feature' ); ?>
    <!--								</a>-->

    As for getting ride of the title, you can just hide it in the stylesheet by commenting out the entire section of .feature-title lines 648-671 for me. This is what it looks like.

    #featured-post-1 {
    	opacity: 1;
    	visibility: visible;
    }
    /*.feature-title a {*/
    	/*background: #2aa125;*/
    	/*background: rgba(128, 128, 128, 0.49);*/
    	/*color: #ffffff;*/
    	/*display: inline-block;*/
    	/*font-size: 24px;*/
    	/*line-height: 1;*/
    	/*margin: 0;*/
    	/*max-width: 50%;*/
    	/*padding: 24px 48px 18px;*/
    	/*position: absolute;*/
    		/*bottom: 36px;*/
    		/*left: 2px;*/
    	/*text-decoration: none;*/
    /*}*/
    /*.featured-post:hover .feature-title a,*/
    /*.featured-post:active .feature-title a,*/
    /*.featured-post:focus .feature-title a,*/
    /*.feature-title a:focus,*/
    /*.feature-title a:active,*/
    /*.feature-title a:hover {*/
    	/*background: rgba(42, 161, 37, 0.74);*/
    	/*color: rgba(255,255,255,0.8);*/
    /*}*/
    .feature-summary {
    	color: #000000;
    	color: rgba(255,255,255,0.5);
    	font-size: 12px;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to stop the slider from being a permalink’ is closed to new replies.