Gallery will not stretch to full page when inserting via shortcode
-
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
- The topic ‘Gallery will not stretch to full page when inserting via shortcode’ is closed to new replies.