New Landing How can we help? Themeforest Theme Support Joyn Change "View Project" text to something else on portfolio page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Joyn
  • #238953
    pleeman
    Member
    Post count: 105

    Is it possible to change the “View Project” text that shows up on project pages to something else, such as “View Website”?

    #239007
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to use this plugin https://wordpress.org/plugins/real-time-find-and-replace/. Hope it should help you.
    Thanks
    Mohammad

    #239008
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Add this to your child theme’s functions.php file:

    /* PORTFOLIO ITEM DETAILS
        ================================================== */
    	if ( ! function_exists( 'sf_portfolio_item_details' ) ) {
    		function sf_portfolio_item_details() {
    		    global $post;
    		    $item_sidebar_content = sf_get_post_meta( $post->ID, 'sf_item_sidebar_content', true );
    		    $client               = sf_get_post_meta( $post->ID, 'sf_portfolio_client', true );
    		    $item_link            = sf_get_post_meta( $post->ID, 'sf_portfolio_external_link', true );
    		    $item_categories      = get_the_term_list( $post->ID, 'portfolio-category', '<li>', '</li><li>', '</li>' );
    		    $fw_media_display     = sf_get_post_meta( $post->ID, 'sf_fw_media_display', true );
    		    $image                = wp_get_attachment_url( get_post_thumbnail_id() );
    		    $pb_active            = sf_get_post_meta( $post->ID, '_spb_js_status', true );
    		    $link_icon		      = apply_filters( 'sf_link_icon', '<i class="ss-link"></i>' );
    		    ?>
    		<?php if ($fw_media_display == "split") { ?>
    		<section class="item-details">
    		    <?php } else if ($pb_active == "true") { ?>
    		    <section class="item-details container">
    		    <?php } else { ?>
    		    <section class="item-details col-sm-3">
    		        <?php } ?>
    		        <?php if ( $item_sidebar_content != "" ) { ?>
    		            <div class="sidebar-content">
    		                <?php echo do_shortcode( $item_sidebar_content ); ?>
    		            </div>
    		        <?php } ?>
    		        <?php if ( $client != "" ) { ?>
    		            <div class="client"><span><?php _e( "Client:", "swiftframework" ); ?></span><?php echo esc_attr($client); ?></div>
    		        <?php } ?>
    		        <time class="date updated" itemprop="datePublished" datetime="<?php echo get_the_date( 'Y-m-d' ); ?>">
    		            <span><?php _e( "Date:", "swiftframework" ); ?></span><?php echo get_the_date(); ?></time>
    		        <?php if ( $item_link != "" ) { ?>
    		            <a class="item-link" href="<?php echo esc_url($item_link); ?>" target="_blank"><?php echo $link_icon; ?><?php _e( "View Website", "swiftframework" ); ?></a>
    		        <?php } ?>
    		        <?php if ( $item_categories != "" ) { ?>
    		            <ul class="portfolio-categories">
    		                <?php echo $item_categories; ?>
    		            </ul>
    		        <?php } ?>
    		        <?php if ( sf_theme_opts_name() == "sf_atelier_options" ) { ?>
    		        	<?php echo do_shortcode('[sf_social_share]'); ?>
    		        <?php } else { ?>
    		        	<div class="article-share" data-buttontext="<?php _e( "Share this", "swiftframework" ); ?>"
    		             data-image="<?php echo esc_url($image); ?>"></div>
    		        <?php } ?>
    		    </section>
    		
    		<?php
    		}
    	    add_action( 'sf_after_portfolio_content', 'sf_portfolio_item_details', 0 );
    	}

    – Kyle

    #239182
    pleeman
    Member
    Post count: 105

    Thank you

    #239186
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem 🙂

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register