• Resolved jana90

    (@jana90)


    Hello,

    I love the plugin but there is one issue I am experiencing. I would prefer to add my gallery (build with Visual Portfolio Plugin) via a short code in my actual php file, like this:

    <?php echo do_shortcode (‘[visual_portfolio id=”79”]’); ?>

    Technically this works, the gallery will show up in the section where I placed the shortcode, but there is lots of margin to the left and to the right when I do it that way. Even when I select ‘stretch’ in the respective Gallery, it will not actually stretch to the sides to fill out the entire page.

    However, when I drop the shortcode into the Gutenberg Editor like this:

    [visual_portfolio id=”79″]

    it actually does work. Can anyone tell me why this isn’t working when I add the php function with shortcode to my files? I would prefer it that way

    thanks!

    it does work as expected and will stretch to sides. But

Viewing 1 replies (of 1 total)
  • Plugin Author Nikita

    (@nko)

    Hey.

    Most probably, the problem in the section, where you trying to output shortcode. Maybe styles conflict or something, I don’t know.

    Regards, nK.

Viewing 1 replies (of 1 total)
  • The topic ‘Gallery will not stretch to full page when inserting via shortcode’ is closed to new replies.