Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #83740
    marga
    Participant

    Hello
    two questions for site http://praxispetraweber.alfahosting.org/

    1. how and where can I change the text of the copyright at the bottom
    where it says:

    “Copyright © 2016 . Alle Rechte vorbehalten. and Catch Base Child Theme by Catch Themes Team”

    2. I have display:none the text on the slider but is there a way that its not linked anymore….? I don´t get it with css.

    Thanx for this great theme..

    Marga

    #83761
    Mahesh
    Keymaster

    Hi @marga,

    Thank you for your appreciation.
    1. In Catch Base Free version, feature to change copyright text is not available, however, it is available in Catch Base Pro. I recommend you to upgrade to pro version.

    2. For removing link from slider, you have to create a child theme. You can find more details on creating child theme HERE. Then in functions.php add the following codes.

    function catchbase_page_slider( $options ) {
    	$quantity		= absint( $options['featured_slide_number'] );
    
    	global $post;
    
        $output 				= '';
        $number_of_page 		= 0; 		// for number of pages
    	$page_list				= array();	// list of valid page ids
    
    	//Get number of valid pages
    	for( $i = 1; $i <= $quantity; $i++ ){
    		if( isset ( $options['featured_slider_page_' . $i] ) && $options['featured_slider_page_' . $i] > 0 ){
    			$number_of_page++;
    
    			$page_list	=	array_merge( $page_list, array( $options['featured_slider_page_' . $i] ) );
    		}
    
    	}
    
    	if ( !empty( $page_list ) && $number_of_page > 0 ) {
    		$get_featured_posts = new WP_Query( array(
    			'posts_per_page'	=> $quantity,
    			'post_type'			=> 'page',
    			'post__in'			=> $page_list,
    			'orderby' 			=> 'post__in'
    		));
    		$i=0;
    
    		while ( $get_featured_posts->have_posts()) {
    			$get_featured_posts->the_post();
    
    			$i++;
    
    			$title_attribute =the_title_attribute( array( 'before' => __( 'Permalink to:', 'catch-base' ), 'echo' => false ) );
    
    			$excerpt = get_the_excerpt();
    
    			if ( $i == 1 ) { $classes = 'page pageid-'.$post->ID.' hentry slides displayblock'; } else { $classes = 'page pageid-'.$post->ID.' hentry slides displaynone'; }
    			$output .= '
    			<article class="'.$classes.'">
    				<figure class="slider-image">';
    				if ( has_post_thumbnail() ) {
    					$output .= get_the_post_thumbnail( $post->ID, 'catchbase_slider', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class'	=> 'attached-page-image' ) );
    				}
    				else {
    					//Default value if there is no first image
    					$catchbase_image = '<img class="pngfix wp-post-image" src="'.get_template_directory_uri().'/images/gallery/no-featured-image-1200x514.jpg" >';
    
    					//Get the first image in page, returns false if there is no image
    					$catchbase_first_image = catchbase_get_first_image( $post->ID, 'medium', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'attached-page-image' ) );
    
    					//Set value of image as first image if there is an image present in the page
    					if ( '' != $catchbase_first_image ) {
    						$catchbase_image =	$catchbase_first_image;
    					}
    
    					$output .= $catchbase_image;
    				}
    
    				$output .= '
    				</figure><!-- .slider-image -->
    				<div class="entry-container">
    					<header class="entry-header">
    						<h1 class="entry-title">
    							<a title="' . the_title_attribute( array( 'before' => __( 'Permalink to:', 'catch-base' ), 'echo' => false ) ) . '" href="' . get_permalink() . '">'.the_title( '<span>','</span>', false ).'</a>
    						</h1>
    						<div class="assistive-text">'.catchbase_page_post_meta().'</div>
    					</header>';
    					if( $excerpt !='') {
    						$output .= '<div class="entry-content">'. $excerpt.'</div>';
    					}
    					$output .= '
    				</div><!-- .entry-container -->
    			</article><!-- .slides -->';
    		}
    
    		wp_reset_query();
      	}
    	return $output;
    }

    Regards,
    Mahesh

    #83771
    marga
    Participant

    Hello Mahesh, thanx for the quick reply.

    By an upgrade do I have to create the site new?

    marga

    #83773
    Mahesh
    Keymaster

    Hi @marga,

    No, you do no need to create a new site, you only need to install Pro theme in you current WordPress installation then activate the theme.

    Regards,
    Mahesh

    #83882
    marga
    Participant

    Hello Mahesh,
    I have already a childtheme, and after I have added this code in the function.php I got this error
    Parse error: syntax error, unexpected end of file in /var/www/web582/html/WordpressPraxis/wp-content/themes/catch-base-child/functions.php on line 94

    Now it´s working again, I have changed the function.php via ftp.

    When I buy the pro version, do I have to install the new childtheme and do all the changings like picture upload, custom.css function.php????

    thanx Marga

    #83884
    Mahesh
    Keymaster

    Hi @marga,

    Buying a pro version, you have to create a child theme, copying previous child theme and and making some changes in its style.css will work. Such as Theme Name, Template and the folder name too. And you do not need to upload media or pictures again.

    Regards,
    Mahesh

    #83886
    marga
    Participant

    Thanx.
    But the code for the function.php will this be the same for the pro version. Do you know why it´s not working?

    marga

    #83915
    Mahesh
    Keymaster

    Hi @marga,

    Yes, the same code for functions.php work fine for Pro version too.
    What seems to be the problem? Have you copied the above code into child theme’s functions.php?

    Regards,
    Mahesh

    #83943
    marga
    Participant

    Hello Mahesh,
    ooh I see I had written this a bit wrong in my post befor.
    but the code gives this errror message.

    Parse error: syntax error, unexpected end of file in /var/www/web582/html/WordpressPraxis/wp-content/themes/catch-base-child/functions.php on line 94

    I have just added the code to the rest of the code from function.php

    greetings marga

    #84228
    marga
    Participant

    Hello Mahesh

    now it´s working,
    but just a small thing.
    I still get when I move with cursor on the slide the permalink as title… Is this possible to get rid of.

    thanx marga

    #84301
    Mahesh
    Keymaster

    Hi @marga,

    In the above code, please replace the follwing lines of code.
    $title_attribute =the_title_attribute( array( 'before' => __( 'Permalink to:', 'catch-base' ), 'echo' => false ) );
    With this:
    $title_attribute =the_title_attribute( array( 'echo' => false ) );

    Let me know if any problem arises.

    Regards,
    Mahesh

    #84433
    marga
    Participant

    Great, thanx this works…..

    greetings marga

    #84438
    Mahesh
    Keymaster

    Hi @marga,

    Thank you for your appreciation.

    Regards,
    Mahesh

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘change text from copyright’ is closed to new replies.