Hi, please read the following documentation. Let me know if you need more help.
Thank you
Yes thank you: I’m starting exactly from that document. I added to the CSS the following:
.sdm_download_link{
text-align: center;
}
but the result is null: http://www.nuove-vie.it/unambigua-utopia/
Any new idea?
Hi, your theme is kind of stopping the center alignment. Can you try the following add the shortcode in between div tags.
For example:
<div style=”text-align:center”>shortcode</div>
If the above does not work can you create a new post and add the above code but don’t publish the post. This is simply to test if it is the page or post you are currently having issues with that is causing this problem.
create a new post and add the above code but don’t publish the post.
Mmm! Cannot understand exactly what you are asking. I made this already, of course. I tried it on posts and pages.
When seen via the WP editor the shortcode appears to be centered, but this because a shortcode is Text! While the <div> doesn’t work at all.
Do you think that the culprit is the theme? And how can this be?
http://www.nuove-vie.it/soldatessa/
This is a new link, published today.
The theme could be the culprit. Can you test one of WordPress default themes like Twenty Fifteen.
I had some trouble to obtain what you’re asking for, but in the end I obtained this page in Twenty-Sixteen style:
http://www.nuove-vie.it/backup/3755-2/
Around the double shortcode, the fancy=”2″ block, and the download counter I’ve set the centered <div>.
<div style="text-align: center;">[sdm_download id="xxxx" fancy="2" new_window="1"]</div>
<div style="text-align: center;">[sdm_download_counter id="xxxx"]</div>
You can see that the download image and button is not center aligned, while the download counter is.
So (apparently) the theme is not the culprit.
Thank you for providing more information. The plugin developers will investigate further your issue.
Plugin Author
mra13
(@mra13)
Fancy 2 can’t be centered using that trick because it was designed for a grid display. So it uses some float elements. It will required a lot of customization to the fancy 2 template to what you want.
will required a lot of customization to the fancy 2 template to what you want.
Ah, well: this means what? Too much work? Impossible to do it?
What exactly?
Plugin Author
mra13
(@mra13)
It wasn’t designed to be used in the way you are trying to use it. You are free to modify whatever you want to make your customization. I just don’t know how to achieve what you asked for.