Add Button To Module On Certain Categories

Posted in: Newspaper
Post count: 159

I’d also like it specific to each post.

Thanks!
IC

Post count: 22421

Please provide more details as we cannot understand what it is you wish to accomplish.
Thank you!

Post count: 159

I have three posts and I want each of them to have a button. The button when clicked would innate an action, either a download or redirect.

I’m not sure if this matters but; the screen cap was in a category article display view using module M4.

http://screencast.com/t/MAZbVlyCUc6c

Let me know if you need further clarification.

Thanks!
IC

Post count: 22421

Hi,
Well you can create your button in visual composer like so: (there is a button element):
http://screencast.com/t/lCGknneqoDu and then you can copy the shortcode for the button from classic and text mode: http://screencast.com/t/4eI8iDaCLBF Then paste the code inside your post: http://screencast.com/t/rPr4QTll6X
Result: http://screencast.com/t/mOzX8EUUW
Hope this helps.
Thanks

Post count: 159

Hey Bogdan, Thanks for the reply.

I know how to create a button once I’m in the post, but I’m wanting the button to appear in module (the article or post preview)… before the reader gets to the post. The area the reader would normally click on to get to the post. I hope that makes sense.

Thanks!

Post count: 22421

Hello,
Modules are different things altogether. In order to modify a module, you need to edit it’s file as there is no way to add a button in the module from the back-end. It will have to be hard-coded. Every module has it’s own specific file: http://screencast.com/t/bKA0L2PJ You will have to edit the files to add your button in it.
Here is an example:
You can use the do_shortcode function like so: http://screencast.com/t/2CXSDfGDZX
<?php echo do_shortcode('[vc_btn title="Click me" shape="round" color="violet" link="url:https://www.google.com||"]');?>
result: (module 1 is used in block 3): http://screencast.com/t/iqscQKkBM0f
You can see what module is used where in this list: http://screencast.com/t/xXHLgDoCRa
Thank you!

Post count: 159

Thanks for the detailed information. If I decide to attempt this, I’ll let you know how it goes.

IC

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.