• Hello! I am using on my website a Hueman theme, but I can not use the video format in sidebar. I want to share a song from youtube like in left sidebard on the demo, but I can only produce another section in sidebar, with Dynamic Sidebars and Widgets.

    My website is https://invatainfo.ro/ . Thanks a lot!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi arcilli. Welcome to the Hueman forum. You said you cannot use the video format in the sidebar but it appears that you do have a video post in the lower tabs widget in your left sidebar. If you have an audio post with an embedded mp3 it should be displayed in the same manner as you see on the theme demo.

    Thread Starter arcilli

    (@arcilli)

    Hi! Thanks for your reply. I want to display the video post in the same manner as a audio. Is it possible?

    Also, have you any ideea how to non display audio post in homepage?

    I guess I don’t quite understand what it is you’re trying to accomplish. You already have a Vevo video post in your sidebar and on the home page. What do you mean by “I want to display the video post in the same manner as a audio”?

    how to non display audio post in homepage

    One way would be to add them to a specific category, then use a pre_get_posts() function in a child theme functions.php file to exclude that category on the home page.

    Thread Starter arcilli

    (@arcilli)

    Sorry for that. Well, in demo content an audio post is showing like this: https://i.imgur.com/m83XfsI.png

    I wanna change something in the theme for configuring video posts to show it in the same manner. Here is how its looking now: https://i.imgur.com/u3BzSui.png

    Thread Starter arcilli

    (@arcilli)

    For the category, I added following code to my functions.php, but nothing happens.

    
    function exclude_category( $query ) {
        if ( $query->is_home() && $query->is_main_query() ) {
            $query->set( 'cat', 'weeks-vibes' );
        }
    }
    add_action( 'pre_get_posts', 'exclude_category' );

    Post display: try using the Hueman Posts widget instead of Hueman Dynamic Tabs.

    Query: for ‘cat’ you need to use the category ID; to exclude it you need to prefix it with a minus sign:

    $query->set( 'cat', '-12' );

    Thread Starter arcilli

    (@arcilli)

    So, if category ID is 3000 and the name is weeks-vibes, how it shoud be?

    $query->set( 'cat', '-3000' );

    Thread Starter arcilli

    (@arcilli)

    Thanks! I solved both problems. Thank a lot!

    You’re welcome; glad to help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Problem video post’ is closed to new replies.