Tagged: copyright
-
AuthorPosts
-
March 20, 2020 at 12:53 pm #1194777
Hi,
I’m like to display some copyright text below big featured image( first featured image displayed bigger) in magazine. I wonder if there is a way to do this trough child function, or some other tip?
Any help is welcomeThanks for advice
March 20, 2020 at 8:00 pm #1194906Hey Dare_Care,
Could you please give us a link to your website, we need more context to be able to help you.
Could you please attach a mockup of what you’re trying to achieve?
Best regards,
VictoriaMarch 20, 2020 at 9:13 pm #1194943Hey Victoria,
Thanks for the fast reply, I wonder If it is possible to had some kind of custome field under big image on magazine, for the purpose of the signature of the image source, e.g. “This image belong UN Water” …
Check private dataThanks for advice
March 23, 2020 at 11:23 am #1195417Hi Dare_Care,
Please add this CSS code in Quick CSS, located in Enfold > General Styling:
#top small.avia-copyright { display: block; }
Best regards,
NikkoMarch 23, 2020 at 12:58 pm #1195447Hey Nikko,
Thanks for tip, this is an clever and fast way, it’s working I just change it a little bit >#top .av-magazine-entry-big .avia-copyright { display: block; text-align: left; }
On the previous wp theme that I want to replace with Enfold, for that purpose I use a ACF plug, So, I wonder if it is possible to include this feature in the next Enfold update, But without using existing copyright field within the upload directory.
I thought about modifying the magazine shortcode inside config-templatebuilder > avia-shortcodes > magazine > magazine.phpThanks for advice
DarkoMarch 23, 2020 at 1:08 pm #1195452Hi Darko,
You’re welcome :)
The copyright text is coming from functions-enfold.php and you can override it by adding this code in functions.php of your child theme (then tweak this as this is the original code):if( ! function_exists( 'avia_post_thumbnail_html' ) ) { function avia_post_thumbnail_html($html, $post_id, $post_thumbnail_id, $size, $attr) { $attachment_id = get_post_thumbnail_id($post_id); $copyright_text = get_post_meta($attachment_id, '_avia_attachment_copyright', true ); if ($copyright_text) { $html .= "<small class='avia-copyright'>{$copyright_text}</small>"; } return $html; } if (! is_admin()){ add_filter('post_thumbnail_html', 'avia_post_thumbnail_html', 99, 5); } }
Hope it helps.
Best regards,
NikkoMarch 23, 2020 at 2:12 pm #1195464Hey Nikko,
Great !
Works like charm, Enfold has huge capabilities through custome function,.
Thanks for awesome tip, hope other users will benefit too.Best Regards
DarkoMarch 23, 2020 at 2:45 pm #1195477Hi Darko,
We’re glad that we could help :)
Thanks for your kind words as well.
And thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Display copyright text below Big magazine image’ is closed to new replies.