-
AuthorPosts
-
October 25, 2015 at 2:09 pm #524390
Hello,
I want to add a previous(/next) button to some specific pages of my site.
I added following code in the visual composer using the Code Block. But instead of the button I want to use one of the Enfold-icons. How can I change the styling of the button to one of these icons?<button onclick="goBack()">Go Back</button> <script> function goBack() { window.history.back(); } </script>
Kind regards,
CharlotteOctober 25, 2015 at 6:26 pm #524433Hi Boulanger!
Use this instead.
<div class="avia-button-wrap avia-button-left avia-builder-el-32 el_after_av_heading el_before_av_button "><a href="#" class="avia-button avia-icon_select-yes-left-icon avia-color-theme-color avia-size-large avia-position-left "><span class="avia_button_icon avia_button_icon_left " aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span><span class="avia_iconbox_title">Theme Color</span></a></div>
And add the onclick to the link there.
Best regards,
ElliottNovember 8, 2015 at 5:56 pm #532174Hi Elliott,
Thanks for your quick reply. I’m not really sure how to do this.
1) I don’t want a button but I want to use one of the icons: ue87e
2) How exactly do I add the onclick to the link?
3) When I shift between ‘Visuel’ and ‘Text’ in the Composer the code gets all messed up.
Thanks for helping me out here.Kind regards,
CharlotteNovember 10, 2015 at 6:25 am #533062Hi,
Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.
Best regards,
RikardNovember 12, 2015 at 12:36 pm #534682Yes of course! See below.
Thank you.
CharlotteNovember 16, 2015 at 5:27 pm #536682Hey!
can you provide us a precise link where we can see the button in question please? because we need to inspect the elements.
Best regards,
AndyNovember 24, 2015 at 1:02 pm #541541Hi Andy,
My previous reply didn’t come through. So one more time:See link below for the buttons
first button: GoBack link works perfectly but button is ugly
second button: Code you provided but I’m not sure how to add the GoBack link and how to change the button into an icon
third button: The icon I’d like to useThanks for helping me out.
Regards,
CharlotteNovember 24, 2015 at 1:58 pm #541604Hey!
hm not sure. Your first button works perfectly for you? it does not do anything when I click on it, so not sure what you mean. So do you want to implement your third icon to second button maybe? please be precise.
Go to fontello.com and choose any icon you want to use. Afterwards click on “Customize Codes” and copy the rectangle to paste it inside your existing code (of your second code block button).
Regards,
AndyNovember 24, 2015 at 4:11 pm #541737Ok, to be more precise:
1) The link of the first button goes back to the previous page you visited. If you opened the page in a new tab/page obviously there is no page to go back to.
2) I don’t want a button layout. I only want an icon with the link that takes the visitor to the previous page, whatever that page was.Regards,
CharlotteNovember 25, 2015 at 12:52 pm #542337Hi!
for first button you are using you can define a unique css class by using this code instead:
<button class="button-back" onclick="goBack()">Go Back</button> <script> function goBack() { window.history.back(); } </script>
Note class=”button-back”.
Now you can call this new css class via Quick CSS field to style it:
.button-back { }
Have a look at this link for different possibilities on how to style your button:
http://www.tyssendesign.com.au/articles/css/styling-form-buttons/Regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.