add theme button

Posted in: Newsmag
Post count: 7

Hi,

I have this line of code in cashcow plugin and would like to replace the current button into this one:
[button color=”” size=”” type=”outlined” target=”” link=””][/button]

$link = ‘class=”button” target=”_blank”>’.__(‘Download’, ‘themeton’).’ ‘.$json[”].’‘;

Can you please help
thanks

Post count: 7

this is the complete line

$link = ‘‘.__(‘Download’, ‘themeton’).’ ‘.$json[”].’‘;

Post count: 7

it should be this line

$link = ''.__('Download', 'themeton').' '.$json[''].'';

Post count: 6600

Hi,

I’m not sure I understand. Have you managed to get this done finally?
We haven’t made any tests with this plugins so I can’t let you know how you can achieve this.
Not sure if this is an possible solution in your case but if you want to use this shortcode [button color="" size="" type="outlined" target="" link=""][/button] instead of the default button and use the do_shortcode() function and add the button where you want it in the template, replacing the default button.
If this doesn’t work I suggest you also ask this question to plugin’s support page or get someone to help you with this as you need custom for this.
Hope this helps!

Sorry for the inconvenience and thanks for the message!

Post count: 7

it did not work

what is the class of the themebutton (black/blue) (like the read more button)?

Post count: 3343

Hi,

If you want to have the same button style, you need to style it via CSS. Show me a link with the button to inspect it.

Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.