-
Author
-
April 8, 2016 at 10:36 #115231Harlock_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
April 10, 2016 at 22:19 #115524LauraModeratorHello, 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 solutionLaura 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 🙂
April 11, 2016 at 16:28 #115668RaduModeratorHi,
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 solutionApril 11, 2016 at 16:35 #115675Harlock_ParticipantHi,
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.April 12, 2016 at 15:53 #115963RaduModeratorHi,
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 solutionApril 12, 2016 at 16:07 #115965Harlock_ParticipantI don’t know if it is the right layout but it fixed the bug:
April 12, 2016 at 17:01 #115983RaduModeratorIt’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 solutionApril 12, 2016 at 17:15 #115993Harlock_ParticipantSure is better.
Can you help me adding a css class or id to the title?
Thanks,
FrancescoApril 13, 2016 at 13:51 #116245Harlock_ParticipantHi,
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">→</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,
FrancescoApril 15, 2016 at 16:52 #116843Harlock_ParticipantOk Radu,
resfreshed the cache and all is ok.
Thanks for your work.
Have a nice day,
FrancescoApril 15, 2016 at 19:16 #116889RaduModeratorGreat
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 -
AuthorPosts
You must be logged in to reply to this topic.