-
AuthorPosts
-
February 18, 2016 at 10:45 pm #585774
I have a client who is using an event/adventure planning system from Fare Harbor on the site. They provide some shortcodes and scripts that open up lightframes. (registration popups) However these offerings provide a plain text “Book Now” link. I would like to figure out how to make the Enfold buttons pull up these lightframes instead of an ugly plain text link.
February 21, 2016 at 3:25 pm #586681Hi!
Simply add the
button
class to the markup, like:<a href="https://fareharbor.com/cbstadventures/items/16545/" onclick="FH.open({'shortname':'cbstadventures','fullItems':'yes','view':{'item':'16545'}}); return false;" class="button">Book now!</a>
Regards,
JosueFebruary 22, 2016 at 5:40 am #586827Ok Great, so this is a good start. There is now indeed a working button. Its style is different from the buttons I currently have on the page. Is there a way to make it a centered light transparent button like the site currently has?
See the Fat Bike Section for the comparison.
February 22, 2016 at 11:14 am #587017<a class="avia-button avia-icon_select-no avia-color-light avia-size-large avia-position-center " href="https://fareharbor.com/cbstadventures/items/16545/" onclick="FH.open({'shortname':'cbstadventures','fullItems':'yes','view':{'item':'16545'}}); return false;">Book now!</a>
That will do it but make sure you place it on a colored section otherwise you won’t see anything.
February 22, 2016 at 10:35 pm #587478Ok, so this 99% worked. It just isn’t aligning center for some reason.
And then is there a way to get the same integration with the Enfold main menu?
I tried adding the link as the URL and setting attributes to:
onclick=”FH.open({ shortname: ‘cbstadventures’, view: { item: 16545 }, fullItems: ‘yes’ }); return false;It almost worked but doesn’t pull up the lightbox.
February 23, 2016 at 5:13 pm #587807February 24, 2016 at 12:34 am #588058Ya I would stop recommending that plugin, it breaks the drop downs and hasn’t been updated for the latest versions of wordpress. It is garbage. I found a solution that doesnt achieve this but works as well.
Any reason why the avia-position-center wouldnt be working?
February 24, 2016 at 5:42 pm #588539Hey!
Try adding this code to the Quick CSS:
#top .avia-position-center { margin: 0 auto; max-width: 120px; display: block; }
Cheers!
JosueNovember 27, 2016 at 5:49 am #717356Hey guys, rebuilding this site and I need the same thing done but am running into CSS Class issues. I am trying to get the link to show up as a full-width button this time instead of the avia light button.
Previous Code:
<a href="https://fareharbor.com/cbstadventures/items/24543/" target="_blank">Book now!</a>
Now I am needing the CSS portion to match the blue Book Now button on the page linked in private section. I tried a few things but its not working:
Custom: avia_button_background avia-button avia-button-fullwidth avia-color-custom
Blue: avia_button_background avia-button avia-button-fullwidth avia-color-blueBoth cause super bizzare issues. Not sure what I am missing.
- This reply was modified 8 years ago by Overhaulics.
November 29, 2016 at 5:29 am #718088Hey!
Could you please provide a screenshot of the changes that you would like to make? Why are you using different elements in the test page when you can just use the plugin’s shortcode?
Cheers!
IsmaelNovember 29, 2016 at 8:07 am #718126I edited the test page to help explain. Something about putting the shortcode in that section breaks it and turns the entire column into a button. The button is also transparent to begin… Very hard to explain which is why I figured I would try showing.
December 2, 2016 at 1:36 pm #719668Hi,
try this code inside Quick CSS field:
.flex_column.av_one_third.flex_column_div.av-zero-column-padding.avia-builder-el-33.el_after_av_one_third.el_before_av_one_third .avia_button_background {opacity: 1 !important; height: 70px; }
and adjust height value as needed.
Best regards,
AndyDecember 3, 2016 at 10:50 am #720023Ok, so this fixed the center button in the test page. That button is now perfect and does exactly what I need it to do. I tried replicating this for another page (in private content) using this shortcode and don’t think I quite got it right since it isn’t working.
flex_column av_one_fourth.no_margin.flex_column_div.avia-builder-el-9.el_after_av_three_fourth.el_before_av_one_full .avia_button_background { opacity: 1 !important; height: 70px; }
The button is right above the contact us button. Almost have this figured out and working, thanks so much for the ongoing effort.
- This reply was modified 8 years ago by Overhaulics.
December 6, 2016 at 2:09 pm #720991Hi,
try this code:
.flex_column.av_one_fourth.no_margin.flex_column_div.avia-builder-el-9.el_after_av_three_fourth.el_before_av_one_full a:hover { opacity: 0 !important; } #top .avia-button-fullwidth:hover { opacity: 1 !important; }
Best regards,
AndyDecember 7, 2016 at 8:36 am #721393Awesome Awesome Awesome! Got the button working which is the important part.
I am using .avia_button_background avia-button avia-button-fullwidth avia-color-blue as the class on the link currently. Ideally I would want to use the darker blue #2d5c88 but I am unsure how to apply that to the class and failed through CSS.
.avia_button_background avia-button avia-button-fullwidth avia-color-blue {
background-color: #2d5c88 !important;
}Any ideas?
December 7, 2016 at 6:18 pm #721633Hi,
not sure what you mean. Can you provide us precise link showing the elements you’re talking about please? also screenshots could help us to make things clear for us.
Best regards,
AndyDecember 8, 2016 at 8:30 am #721863Oh, I am just using the standard blue button preset color for the full-width button class but you can set custom colors on full-width buttons. How would I change the color to a custom color. Does the class change or do I use CSS?
On my test page take a look at the left button, uses different class but the color isnt defined in the class alone.
.avia_button_background avia-button avia-button-fullwidth avia-color-blue
vs
.avia_button_background avia-button avia-button-fullwidth avia-color-custom
December 9, 2016 at 3:18 pm #722448Hi,
use this code:
.avia-button.avia-color-blue { background-color: red; } .avia-button.avia-color-blue:hover { background-color: green; }
and adjust color as needed.
Best regards,
AndyDecember 9, 2016 at 11:10 pm #722631Thank you! You guys have by far the best support of the 5 themes I have used.
December 12, 2016 at 3:03 pm #723144Hi,
Glad we could help!
We really appreciate it if you rate our theme on themeforest https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
Andy -
AuthorPosts
- The topic ‘Button Integration with Fare Harbor’ is closed to new replies.