• Resolved pensierocrea

    (@pensierocrea)


    Hi there,
    thank you for your theme… I’m proud to be the first to open a topic

    I need 3 buttons over the video but they should display only in specific site areas
    I can handle this task by myself using CSS to hide or make visible the button needed depending if you are in a specific page/post or if you are logged in or not

    BUT

    there is no a custom class or unique ID to address each buttont

    This possibility exist for the footer box with social buttons becaues it is a list so you can access each item of the list addressing it in this way:

    #oz-id-social > ul > li:nth-child(2) > a:hover

    but I cannot do this with:

    .oz-video-button

    Let me know how obtain this result please
    Thank you
    Diego

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter pensierocrea

    (@pensierocrea)

    I’ve solved in this way… editing the theme file
    video.php (templates/custom-homepage/video.php)

    <?php 
            $oziz_list_button= get_theme_mod('youtube_home_button'); 
    		<strong>$i == 0;</strong>
            if ($oziz_list_button) {
                foreach ($oziz_list_button as $oziz_text) {
                   <strong>	$i++;</strong>
                    echo '<a class="oz-video-button<strong> button_number_'.$i.'</strong>" href="'. esc_url($oziz_text['link']) .'" title="">'. esc_html($oziz_text['text']) .'</a>';
                }
            }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘video buttom “custom class” for each item or using list…’ is closed to new replies.