Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 welcome

    Thanks for advice

    #1194906

    Hey 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,
    Victoria

    #1194943

    Hey 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 data

    Thanks for advice

    #1195417

    Hi Dare_Care,

    Please add this CSS code in Quick CSS, located in Enfold > General Styling:

    #top small.avia-copyright {
        display: block;
    }

    Best regards,
    Nikko

    #1195447

    Hey 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.php

    Thanks for advice
    Darko

    #1195452

    Hi 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,
    Nikko

    #1195464

    Hey Nikko,
    Great !
    Works like charm, Enfold has huge capabilities through custome function,.
    Thanks for awesome tip, hope other users will benefit too.

    Best Regards
    Darko

    #1195477

    Hi 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Display copyright text below Big magazine image’ is closed to new replies.