Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #20860
    tkabe
    Member

    http://www.calprogramsautistic.org
    Per your comment in an earlier post, I am restoring the required footer message if my request to upgrade to Pro early week is not approved.

    I wish to remove the “Permalink to” reference on the homepage slider – I research on this site and did not find a previous post. I found this article http://wordpress.org/support/topic/remove-permalinks-to-hover-in-post-title and this addresses the subject however after editing the child theme files content.php, content-gallery.php and content-image.php to remove these words, I still see the reference in my tag hover….After inspection I think the correct file to edit would only need to be content-gallery.php for the slider.

    a. Is content-gallery.php the correct file to edit? Why didn’t this work?
    b. I removed the reference in bold below in the code and any other similar text in this file.
    <div class=”entry-container post-format”>
    <header class=”entry-header”>
    <h1 class=”entry-title”>
    ” title=”<?php echo esc_attr( sprintf( __( ‘Permalink to %s’, ‘catcheverest’ ), the_title_attribute( ‘echo=0’ ) ) ); ?>” rel=”bookmark”><?php the_title(); ?></h1>
    <h2 class=”entry-format”>” title=”<?php _e( ‘All Gallery Posts’, ‘catcheverest’ ); ?>”><?php _e( ‘Gallery’, ‘catcheverest’ ); ?></h2>
    </header><!– .entry-header –>
    <div class=”entry-content”>

    #20865
    Sakin
    Keymaster

    @tkabe: I don’t get it what you mean. You don’t need to request to upgrade to pro version. You can simple purchase the theme from http://catchthemes.com/themes/catch-everest-pro/ and if you need help is installation. Then you can request in http://catchthemes.com/contact-us/

    To remove the permalink to in your Featured Post Slide, just open your functions.php file in your child theme and copy the following code and edit it.

    /**
     * Shows Featured Post Slider
     *
     * @uses catcheverest_header action to add it in the header
     */
    function catcheverest_post_sliders() { 
    	//delete_transient( 'catcheverest_post_sliders' );
    	
    	global $post, $catcheverest_options_settings;
       	$options = $catcheverest_options_settings;
    
    	
    	if( ( !$catcheverest_post_sliders = get_transient( 'catcheverest_post_sliders' ) ) && !empty( $options[ 'featured_slider' ] ) ) {
    		echo '<!-- refreshing cache -->';
    		
    		$catcheverest_post_sliders = '
    		<div id="main-slider" class="container">
            	<section class="featured-slider">';
    				$get_featured_posts = new WP_Query( array(
    					'posts_per_page' => $options[ 'slider_qty' ],
    					'post__in'		 => $options[ 'featured_slider' ],
    					'orderby' 		 => 'post__in',
    					'ignore_sticky_posts' => 1 // ignore sticky posts
    				));
    				$i=0; while ( $get_featured_posts->have_posts()) : $get_featured_posts->the_post(); $i++;
    					$title_attribute = apply_filters( 'the_title', get_the_title( $post->ID ) );
    					$excerpt = get_the_excerpt();
    					if ( $i == 1 ) { $classes = "post hentry slides displayblock"; } else { $classes = "post hentry slides displaynone"; }
    					$catcheverest_post_sliders .= '
    					<article class="'.$classes.'">
    						<figure class="slider-image">
    							<a title="Permalink to '.the_title('','',false).'" href="' . get_permalink() . '">
    								'. get_the_post_thumbnail( $post->ID, 'slider', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class'	=> 'pngfix' ) ).'
    							</a>	
    						</figure>
    						<div class="entry-container">
    							<header class="entry-header">
    								<h1 class="entry-title">
    									<a title="Permalink to '.the_title('','',false).'" href="' . get_permalink() . '">'.the_title( '<span>','</span>', false ).'</a>
    								</h1>
    							</header>';
    							if( $excerpt !='') {
    								$catcheverest_post_sliders .= '<div class="entry-content">'. $excerpt.'</div>';
    							}
    							$catcheverest_post_sliders .= '
    						</div>
    					</article><!-- .slides -->';				
    				endwhile; wp_reset_query();
    				$catcheverest_post_sliders .= '
    			</section>
            	<div id="slider-nav">
            		<a class="slide-previous"><</a>
            		<a class="slide-next">></a>
            	</div>
            	<div id="controllers"></div>
      		</div><!-- #main-slider -->';
    			
    	set_transient( 'catcheverest_post_sliders', $catcheverest_post_sliders, 86940 );
    	}
    	echo $catcheverest_post_sliders;	
    }

    Note: Please restore the Theme footer or upgrade to Pro version. I hope you understand.

    #20873
    tkabe
    Member

    Theme Footer has been restored as described in earlier post. I do understand.

    I do not understand your message about the featured post slider. Are you suggesting I copy the code you provided and add/insert this into my existing child theme functions.php then edit this code removing the two (2) tag references to “Permalink to”? I did this and it did not work so I must not be clear about your instructions.

    #20874
    Sakin
    Keymaster

    @tkabe: Yes you should copy that code in your child theme functions.php file and delete Permalink to . Then you need to change any value in theme options panel to clear the transient cache otherwise it will take 24 hours to see the changes.

    #20878
    tkabe
    Member

    Very cool Sakin! This worked great. I was suspecting something server side needed to be update, but lacked an understanding how to refresh.

    #56440
    nikhilmangal
    Member

    Hi,

    I am using catch responsive to create a website. I want to remove the permalinks from the slider images. Can someone help me with this please?

    #56522
    Sakin
    Keymaster

    @nikhilmangal: there is no option to remove permalink from Featured Page Slider in Catch Responsive Free theme. For that either you need to build child theme and then copy the full function catchresponsive_page_slider() to your child theme functions.php file and edit it or you can upgrade to Pro version and use “Featured Image Slider” instead of “Featured Page Slider” so that you can just upload image without link.

    For more about Catch Responsive Pro additional features, you can read theme instructions at http://catchthemes.com/theme-instructions/catch-responsive-pro/

    #57318
    Sheila
    Participant

    the posts above didn’t seem to apply to me and I can’t find where to start a new thread.

    When I click on Home at http://www.claudiaroseseries.com/SheilaLoweBooks/ I’m taken to http://www.claudiaroseseries.com/SheilaLoweBooks/home-2/
    How do I make Home return to http://www.claudiaroseseries.com/SheilaLoweBooks/?

    #57385
    Sakin
    Keymaster

    @Sheila: Here is link to post new question in Catch Responsive Pro theme http://catchthemes.com/support-forum/forum/catch-responsive-pro-premium/. Just go to that page and you will see 25 latest questions and at the bottom you will see form which you can fill in to post new question.

    I see that you have page title “Home” that is http://www.claudiaroseseries.com/SheilaLoweBooks/home-2/. If you don’t want this page, then do to “Pages” and delete that page.

    Then edit your menu from “Appearance => Menu” and remove that home menu and add new home like this https://www.pinterest.com/pin/548594798331207092/

    #108295
    vladibeer
    Participant

    Hello, I know this is pretty old post, but I have decided to answer it anyway as I found a very easy solution to this problem. Im using Catch Fire, but I suppose this fix will work on other themes too.

    Copy content-gallery.php from your Catch Theme to Child-Theme and edit it as follows.

    In content-gallery.php locate
    `<p><em><?php printf( _n( ‘This gallery contains <a %1$s>%2$s photo</a>.’, ‘This gallery contains <a %1$s>%2$s photos</a>.’, $total_images, ‘catch-flames’ ),
    ‘href=”‘ . esc_url( get_permalink() ) . ‘” title=”‘ . sprintf( esc_attr__( ‘Permalink to %s’, ‘catch-flames’ ), the_title_attribute( ‘echo=0’ ) ) . ‘” rel=”bookmark”‘,
    number_format_i18n( $total_images )
    ); ?></em></p>`

    and delete
    esc_url( get_permalink() ) . '

    so it looks like this

    <p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'catch-flames' ),
    						'href="' . " title="' . sprintf( esc_attr__( 'Permalink to %s', 'catch-flames' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
    						number_format_i18n( $total_images )
    					); ?></em></p>

    PS: I really like those themes! Great job guys!

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Remove Permalink To’ is closed to new replies.