Site logo

Archived topic

YouTube Pro and using Sections

7 replies · Started by Jay9 on November 7, 2018

Viewing posts 1–8 of 8

Hello:

I would like to use Sections in GP Premium, but I have encountered a problem. I have discovered that the button for a plugin I use, YouTube Pro, is missing when I enable Sections. The button usually appears next to "Add Media" and allows me to insert videos using the YouTube Pro plugin. When adding a section and its content there is no option/button for YouTube Pro, although I do see the option for adding content from another plugin I am using (Essential Grid). Any ideas/suggestions?

Thank you.

Hi there,

Sections don't show all buttons registered by plugins by default, because not all of them are compatible.

If you'd like, you can send us temporary admin login details and we'll check for compatibility: https://generatepress.com/contact

If it's compatible, we can give you a little bit of code to display it.

Hi Tom:

Thank you for the reply. I just submitted temporary admin login details via the contact page you linked to. Please let me know if you need anything else.

Thank you.

Try adding this function:

add_action( 'admin_head', function() {
    ?>
    <style>
        .generate-section-content .wp-media-buttons #ytprefs_wiz_button {
            display: inline-block;
        }
    </style>
    <?php
} );

Let me know :)

Hi Tom:

That worked, thanks!

Several other questions...

I used the plugin "Code Snippets" to add the function (read about the plugin in your documentation), but do you suggest a better way to add the function?

I presume that the use of sections can be enabled on a page-by-page, post-by-post basis, so that enabling it for a single page/post does not effect other page/posts without it enabled, is that correct?

Finally, are there any issues I should be aware of if I do use it on a page/post and later decided I don't want to? For example, would I need to recreate the content?

Thank you.

If you already have a child theme activated, then you can use the functions.php file, which will save you from using a plugin.

That's correct - Sections are page by page.

The actual Section content is saved to the content editor when you publish changes to the page. You can see this by deactivating Sections on the page, which will reveal your content within the default editor.

Hi Tom:

Thanks for the follow-up reply/answers. Have a great weekend!

Thanks! You too :)

This archived topic is closed to new replies.