-
Author
-
April 8, 2016 at 10:36 #115231
Harlock_
ParticipantI 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 #115524Laura
ModeratorHello, 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 solutionApril 11, 2016 at 16:28 #115668Radu
ModeratorHi,
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 #115963Radu
ModeratorHi,
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 #115983Radu
ModeratorIt’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:21 #116239Radu
ModeratorFirst please provide entire file : /wp-content/themes/buddyapp-child/content.php
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 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 13, 2016 at 19:10 #116334Radu
ModeratorHi Francesco,
It’s better if you will provide ftp and admin credentials because it’s little odd the title is placed into ALT and the title is rendered outside the alt.
Please provide details to test directly on your website please
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 13, 2016 at 19:12 #116335Harlock_
ParticipantHost: 178.239.178.182
Username: admin
Password:ZtNBhOzSdEApril 14, 2016 at 15:46 #116571Radu
ModeratorCannot connect please check details, test it before please
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 14, 2016 at 17:29 #116617Harlock_
ParticipantSorry,
Hera you are: radu@178.239.178.182 pass: SeventhQueenSupport
Just checked.
Thanks,
FrancescoApril 15, 2016 at 16:39 #116837Radu
ModeratorHi,
The child theme has stop to working or some cache issue,
I’ve added this
COPY CODEecho '<div class="mytitleattribute">'; print_r ( the_title_attribute() ) ; echo '</div>';But for some reason the code is not rendered
IF you cannot handle this provide wp admin to please
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 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 #116889Radu
ModeratorGreat
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.