This topic has 18 replies, 3 voices, and was last updated 8 years by Radu.

  • Author
  • #115231
     Harlock_
    Participant

    I was asked by Easy Digital Download Support team to do this change:

    http://sumobi.com/how-to-fix-the-strange-html-markup-in-download-titles/

    Can you tell me where I can find the code to change in your template?

    Thanks,

    Francesco Ambrosini

    #115524
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #115576
     Harlock_
    Participant

    Thanks Laura.
    I will wait for support.

    #115668
     Radu
    Moderator

    Hi,

    First tell me ( provide to me ) what’s the page where do you have problems with the title formatting ?
    In this page : http://instantcoach.me/downloads/first-42-drills/

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #115675
     Harlock_
    Participant

    Hi,
    yes on this page you can see under the image the text:

    My first 42 drills”>

    which should be, well formatted, the title of the download.
    This is the default single download page of easy digital download.
    They told me to change this to fix:

    http://sumobi.com/how-to-fix-the-strange-html-markup-in-download-titles/

    but I don’t know ehre to find this code on your theme files.
    Thanks.

    #115963
     Radu
    Moderator

    Hi,

    The file responsible for that layout is /wp-content/themes/buddyapp/content.php i recommend you to copy this file into /wp-content/themes/buddyapp-child/content.php then open the file from child theme and on line 90 or around you will have to look for this line

    echo'<img class="image_fade" src="' . $image . '" alt="'. get_the_title() .'">';

    Replace get_the_title() with the_title_attribute()

    Let me know

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #115965
     Harlock_
    Participant

    I don’t know if it is the right layout but it fixed the bug:

    http://instantcoach.me/downloads/the-circle-of-goal/

    #115966
     Harlock_
    Participant

    Sure there is some html to fix, too.

    #115983
     Radu
    Moderator

    It’s ok ?

    Can i mark the topic as resolved ?

    Cheers

    RAdu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #115993
     Harlock_
    Participant

    Sure is better.
    Can you help me adding a css class or id to the title?
    Thanks,
    Francesco

    #116239
     Radu
    Moderator
    This reply has been set as private.
    #116245
     Harlock_
    Participant

    Hi,
    the file is the same as the original except for lin 91 which is:

    echo'<img class="image_fade" src="' . $image . '" alt="'. the_title_attribute() .'">';

    as you suggested.

    COPY CODE
    <?php
    /**
     * The default template for displaying content
     *
     * Used for single posts display
     *
     * @package WordPress
     * @subpackage Next
     * @since 1.0
     */
    
    $kleo_post_format = get_post_format();
    ?>
    
    <div class="small-thumbs">
    	<article id="post-<?php the_ID(); ?>" <?php post_class(array("clearfix")); ?>>
    
    		<?php if ( sq_option( 'post_media_status', 1, true ) ) : ?>
    
    		<div class="entry-image">
    			<?php
    			switch ( $kleo_post_format ) {
    
    				case 'video' :
    					$video = get_cfield( 'embed' );
    					if ( !empty( $video ) ) {
    						global $wp_embed;
    						echo apply_filters( 'kleo_oembed_video', $video );
    					}
    					break;
    
    				case 'gallery':
    
    					$slides = get_cfield( 'slider' );
    
    					if ( $slides ) {
    						echo '<div class="fslider" data-arrows="false" data-lightbox="gallery">';
    						echo '<div class="flexslider"> <div class="slider-wrap">';
    						foreach( $slides as $slide ) {
    							if ( $slide ) {
    								$image = aq_resize( $slide, Kleo::get_config('post_gallery_img_width'), Kleo::get_config('post_gallery_img_height'), true, true, true );
    								//small hack for non-hosted images
    								if (! $image ) {
    									$image = $slide;
    								}
    								echo '<div class="slide">' .
    									'<a href="'. $slide .'" data-lightbox="gallery-item">
    										<img class="image_fade" src="'.$image.'" alt="'. get_the_title() .'">'
    									. '</a>' .
    									'</div>';
    							}
    						}
    						echo '</div></div>';
    						echo '</div>';
    					}
    
    					break;
    
    				case 'link':
    
    					break;
    
    				case 'quote':
    					?>
    					<blockquote>
    						<?php the_content();?>
    					</blockquote>
    					<?php
    					break;
    
    				case 'status':
    					?>
    					<div class="panel panel-default">
    						<div class="panel-body">
    							<?php the_content();?>
    						</div>
    					</div>
    					<?php
    					break;
    
    				case 'image':
    				default:
    					if ( kleo_get_post_thumbnail_url() != '' ) {
    
    						$img_url = kleo_get_post_thumbnail_url();
    						$image = aq_resize( $img_url, Kleo::get_config('post_gallery_img_width'), null, true, true, true );
    						if( ! $image ) {
    							$image = $img_url;
    						}
    						echo'<img class="image_fade" src="' . $image . '" alt="'. the_title_attribute() .'">';
    
    					}
    
    					break;
    
    			}
    			?>
    		</div>
    
    		<?php endif; ?>
    
    		<div class="entry-c">
    
    			<?php if ( ! is_single() ) : ?>
    
    			<header class="entry-header">
    				<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
    			</header>
    
    			<?php endif; ?>
    
    			<?php kleo_entry_meta();?>
    
    			<?php if ( ! in_array( $kleo_post_format, array('status', 'quote', ) ) ): ?>
    
    				<div class="entry-content">
    
    					<?php the_content( wp_kses_post( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'buddyapp' ) ) ); ?>
    					<?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'buddyapp' ), 'after' => '</div>' ) ); ?>
    
    				</div><!--end entry-content-->
    
    			<?php endif;?>
    
    		</div>
    
    	</article>
    </div>

    Thanks,
    Francesco

    #116334
     Radu
    Moderator
    This reply has been set as private.
    #116335
     Harlock_
    Participant
    This reply has been set as private.
    #116571
     Radu
    Moderator
    This reply has been set as private.
    #116617
     Harlock_
    Participant
    This reply has been set as private.
    #116837
     Radu
    Moderator
    This reply has been set as private.
    #116843
     Harlock_
    Participant

    Ok Radu,
    resfreshed the cache and all is ok.
    Thanks for your work.
    Have a nice day,
    Francesco

    #116889
     Radu
    Moderator

    Great

    Thank you !

    Have a nice day to !

    Cheers

    RAdu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 19 posts - 1 through 19 (of 19 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?