Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › WP Photo Seller – Album name cutting off
Tagged: Albums, photo seller
- This topic has 9 replies, 7 voices, and was last updated 6 years, 8 months ago by RickM.
-
AuthorPosts
-
August 4, 2015 at 10:57 am #12944bwarMember
Hi, I’m having a slight problem with the album titles being displayed on pages. When I go to any album page, the gallery titles are cut off and end with ‘…’ as opposed to displaying the full gallery name.
For example, please see:
[http://sdphotos.co.uk/albums/album15/]
As you can see, the first gallery displays ’15/07/15 Race …’ and should display ’15/07/15 Race 1′
Please could you advise on how to resolve?
Regards
August 5, 2015 at 12:41 am #71041adminKeymasterIt always shows only a few characters of the album. When a user clicks on an album, it will show the full name with all the gallery and stuff in there. Otherwise if you put a long title for your album name, it can ruin the nice grid display on the album homepage.
August 5, 2015 at 8:48 am #71042bwarMemberHi,
Is there any way to disable it from showing just a few characters and actually make it display the entire gallery name?
I would very much like for people to be able to see the Race Titles fully whilst within that view so that they can see which gallery to go into
Regards
August 5, 2015 at 12:01 pm #71043wzpModeratorIf the user’s browser has the ALT text display enabled; the simple act of hovering the pointer over the truncated name displays a tooltip with the entire name.
August 6, 2015 at 12:02 am #71044adminKeymasterGo to your “Albums” menu and select Album 2 for the “Album Selection Template” field. That album template shows bigger thumbnails with more characters for the title. So that should help.
August 20, 2015 at 2:48 pm #71045bwarMemberHi
It still didn’t quite show the whole name
Is there a way to disable it from truncating the album name?
Perhaps a line in the PHP that I can change?
We are in desperate need for it to show the whole name so any help would be greatly appreciated.
Best regards
September 7, 2016 at 3:19 pm #71046Jarkko58MemberHere is the trick (If someone in the future needs to do it..)
If you use album 2 template do this to show 48 characters in the name:
Open:
wp-photo-sellerviewsalbumtemplate-2album-template-2.php
Search:
if(strlen($gallery_name) > 24){
$gallery_name_short = substr($gallery_name, 0, 24).”…”;
Change it to this:
if(strlen($gallery_name) > 48){
$gallery_name_short = substr($gallery_name, 0, 48).”…”;
September 7, 2016 at 11:41 pm #71047PeterMemberI don’t recommend modifying the plugin core code simply because we are always adding new features and updates to this plugin and you will lose your changes when you upgrade.
I will see if maybe we can add a wordpress filter for this case which will negate the need to change the plugin code.
January 8, 2017 at 5:25 am #71048horsepowerSpectatorHas there been a solution to this? If you modify template 1 to increase the length, then you can no longer sort the album by Name, or else it messes up the rendering of the page.
March 4, 2018 at 2:03 pm #71049RickMMemberHi
Just purchased this plugin and came here especially for this solution (to increase no. of chars under gallery names) – so thanks, and (for the next upgrade) could you consider increasing the Album thumb sizes – 250 and 300 would be good options – and this would also allow for more text underneath.
Thanks
-
AuthorPosts
- You must be logged in to reply to this topic.