• Resolved pstidsen

    (@pstidsen)


    Hi there,

    Try to play one of the episodes in the bottom. Some of the content in the player is hidden and there is some strange going on when clicking the play button.

    Is there some CSS that should be adjusted?

    Best Regards,
    Peter

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @pstidsen,

    It’s not a CSS issue, there is an error in the HTML structure. Beginning from episode Bibeltime: Lykkelig den, there is an additional </ p> tag that breaks the structure:


    <div class="episode-title player__episode-title">Bibeltime: Lykkelig den, hvis overtr?delser er tilgivet (SL 32) - Frank R. Kristensen</div></p></div>

    Have you encountered similar issues in the past? Have you recently installed any new plugins or made changes to your theme?

    Thread Starter pstidsen

    (@pstidsen)

    Hi Serhiy,

    Thanks for your reply. It might be the code below that does it. I have tried to remove the filter, and it works. However, I added the code in order to show whole post content below the post title at the archive page. How could I do that without messing the player’s HTML?

    function add_content_to_excerpt_for_podcast($excerpt) {
    	global $post;
    	
    	// Check if the post type is 'podcast'
    	if (get_post_type($post) == 'podcast'){
    		$description = apply_filters('the_content', get_post_field('post_content', $post->ID));
    		
    		// If it is, return the excerpt
    		return $description;
    	}
    	
    	// For all other post types, return the default excerpt
    	return $excerpt;
    }
    add_filter('the_excerpt', 'add_content_to_excerpt_for_podcast');
    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @pstidsen,

    What’s your settings in Settings->Reading->For each post in a feed, include? If it’s excerpt, could you try to change it to Full text instead of the custom code?

    Thread Starter pstidsen

    (@pstidsen)

    Interesting. That’s helps a little. However, a-tags are removed from the archive view. The three “Pr?sentation fra foredraget”-texts should be links in the archive like in the single post.

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @pstidsen,
    Have you managed to fix it? Sorry, I can’t see any “Pr?sentation fra foredraget” text on the archive page.

    Thread Starter pstidsen

    (@pstidsen)

    Sorry, use the page 2021 instead of 2023. Here you see the text and the missing a-tag.

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @pstidsen,

    That part is not a plugin responsibility, so I’m not sure I can help you with it, but I’ll try. I can see you’re using generatepress theme. Could you try looking for the theme’s content.php file, and replace the_excerpt() with the_content() there?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Player is cutted visually’ is closed to new replies.