- This topic has 5 replies, 2 voices, and was last updated 4 years, 8 months ago by Andrew Misplon.
- AuthorPosts
- January 7, 2020 at 7:26 pm #13798
The Golfer MagazineParticipantLook at this page
http://thegolferinc.com/category/luxe/ [Puro Theme]I was able to add a subtitle throught adding a custom field and code it to show on an archive page.
Now, I want to do similar on ULTRA masonry archive
http://emeraldtee.com/thegolfermag/category/resorts/
I would like to add a subtitle
and get rid of the …
What file would I add the subtitle in?January 7, 2020 at 7:32 pm #13801
Andrew MisplonKeymasterHi
Please, keep in mind that changes shouldn’t be made to the parent theme as all files are overwritten during theme updates. If you’d like to edit the masonry layout you can create a folder in your child theme called
loops
and then make a copy of the/loops/loop-masonry.php/
file in the parent theme and copy it into the same location in the child theme.To remove the excerpt ellipsis you’d need to insert the entire function shown here https://pastebin.com/raw/KaAKVNvr into your child theme functions.php file or add the function as a snippet using Code Snippets plugin and run the snippet on the site front end. Then change
$ellipsis = '...';
to$ellipsis = '';
Please, keep in mind that we don’t cover custom development within our support scope but do our best to point you in the right direction.January 8, 2020 at 4:05 pm #13808
The Golfer MagazineParticipantFirst, thanks about the child theme idea.
I was able to get a subtitle in easily, once you told me which file to use.
Here is the masonry archive displayed with subtitles.I did not need the code – all I needed to know was which file to use.
/loops/loop-masonry.php/http://emeraldtee.com/thegolfermag/category/resorts/
Getting rid of the ellipsis is trickier as Code Snippet is not working.
I will see if functions.php is better.
Thanks!January 8, 2020 at 4:27 pm #13809
Andrew MisplonKeymasterIn Code Snippets have to set the function to run on the site front-end and is the function saved and activated? Have you edited the function to remove the ellipsis?
January 8, 2020 at 8:42 pm #13811
The Golfer MagazineParticipantI could not get the function to load even when on Code Snippets, or a Similar App
Security would not allow it.
I had to load in through FTP into functions.php on child theme.
HOWEVER, I wanted to get rid of any excerpt as well as …
So I just put the echo $excerpt in comment /**/’s so as to prevent any excerpt at all on the masonry blog. I did not even want the line spacing.
The customizer allows you to set excerpt to 0, but does not get rid of the carriage return spacing.
THANKS THIS THEME IS GREAT – PRECISELY BECAUSE I CAN TOY WITH IT.
Other themes are too horrendously complex.
February 9, 2020 at 11:54 am #13970
Andrew MisplonKeymasterHi, sorry I missed your reply. I’m really glad to hear you’ve made progress with this function via your child theme functions file.
- AuthorPosts
You must be logged in to reply to this topic.