-
AuthorSearch Results
-
April 16, 2018 at 11:26 pm #942817
In reply to: Social Icons in the Footer
don’t forget the css in quick css:
#top #button-on-top .avia-button-fullwidth { padding: 20px 0px; } #button-on-top .avia_iconbox_title { font-size: 20px !important; }and :
add_action('ava_main_header', function() { if(wp_is_mobile()){ echo '<div id="button-on-top">'; echo do_shortcode("[av_button_big label='100% Donation Policy' description_pos='below' link='manually,https://mydonate.bt.com/events/unite4humanity/461708' link_target='_blank' icon_select='no' icon='ue800' font='entypo-fontello' custom_font='#ffffff' color='custom' custom_bg='#b02b2c' color_hover='custom' custom_bg_hover='#106736' custom_class='' admin_preview_bg=''][/av_button_big]"); echo '</div>'; } });you see the label= that is the text in the button
you see that in the code are custom_bg color and color_hover (hex-codes) so you can change yourself.and if this fits for you – it makes no sense that you have on mobile this donate menu button:
.avia_mobile #menu-item-668 { display: none; }April 10, 2018 at 8:08 am #939682In reply to: background colour icon box
Hey june,
Thank you for using Enfold.
Use the following css code to change the default background color of the icon box.
.main_color.iconbox_top .iconbox_content { background-color: red; }Enable the custom css class field in order to define specific styles for the elements.
Best regards,
IsmaelMarch 26, 2018 at 4:27 pm #933075In reply to: Columns are messed up after theme update
Hi bakbek,
It seems to me that the lower 3 iconboxes should be in a separate container, but here is the css to try to adjust them.
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css.rtl div.flex_column.avia-builder-el-53 { float: right !important; margin-left: 2%; width: 45%; min-height: 263px; } body.rtl .flex_column.av_one_fourth.first.avia-builder-el-10, body.rtl .flex_column.av_one_fourth.first.avia-builder-el-16 { margin-left: 0px; } body.rtl .flex_column.av_one_fourth.avia-builder-el-14 { min-height: 340px; } body.rtl .flex_column.av_one_fourth.avia-builder-el-22 { margin-left: 6%; }If you need further assistance please let us know.
Best regards,
VictoriaMarch 24, 2018 at 7:18 pm #932457In reply to: Vertical align Title in IconBox
maybe – best will be to give a custom class to all these iconboxes (your account, services, operations, co-op …)
i have set the selectivity for now via page id and color-section id.page-id-76 #after_section_1 .iconbox { display: inline-flex; } .page-id-76 #after_section_1 .iconbox .entry-content-header { position: relative; top: 50%; transform: translateY(-50%); }on smaller screens set back to display: block or do insert to the headings some soft-hyphens with
­ and ;
sorry board soft will immediatly change the entitie code even if placed in code so ­ with semicolon behindMarch 22, 2018 at 1:12 pm #931242In reply to: Iconbox after update
Hi jjdenmark,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
.page-id-17 #main .av_one_half .iconbox.iconbox_top, .page-id-17 #main .av_one_half .iconbox.iconbox_top .iconbox_content { min-height: 412px; margin-bottom: 20px; }Not, sure I understand, what do you mean by the image being weird. Can you please explain a bit more?
If you need further assistance please let us know.
Best regards,
VictoriaMarch 21, 2018 at 6:01 am #930316In reply to: Iconbox after update
Hi jjdenmark,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#after_section_1 .av_one_half .iconbox.iconbox_top, #after_section_1 .av_one_half .iconbox.iconbox_top .iconbox_content { min-height: 322px; margin-bottom: 20px; }If you need further assistance please let us know.
Best regards,
VictoriaMarch 9, 2018 at 2:17 pm #924497In reply to: How to make icons smaller only on mobile?
Hi,
It looks like in your custom css or General Styling > Quick CSS field you have this code:#top .iconbox_icon, #top .iconbox_icon { font-size: 100px !important; /* Icon size */ width: 74px !important; /* Container size */ height: 74px !important; /* Must be the exact same value as the width */ }please adjust “font-size: 100px !important;” to a smaller number.
Best regards,
MikeMarch 5, 2018 at 2:16 pm #921481In reply to: Cusom CSS not working after theme update
Hey DROR,
It would be good if you had a custom ID for the element on each page, but it does seem that they all are called “av-layout-grid-1” on the few pages that I checked, so please try this code:#av-layout-grid-1 .iconbox_icon { margin-left: 44px!important; position: relative!important; top: 24px!important; }Best regards,
MikeMarch 4, 2018 at 10:15 pm #921215Topic: Cusom CSS not working after theme update
in forum Enfoldbakbek
ParticipantHi, I updated the theme to the latest version and a custom CSS code that was given to me here before is no longer working:
.page-id-18256 #av-layout-grid-1 .iconbox_icon {
margin-left: 44px;
position: relative;
top: 14px;
}It should align the iconbox icon but it isn’t. It was working great before I updated the theme.
February 25, 2018 at 7:15 pm #917520In reply to: How can I re-create this styling with Enfold?
But on your site i can not see that – on the image hoster – yes :lol
but as i said – on your page i does not see that effect.1) By the way – you forgot to set one custom class to the second row left (or is it intentionally)
2) By the way – you know that interesting page for SIMULATED DAYLIGHT PDT WITH INDOORLUXIcon is font-size ( it is hard to simulate it because there are minifying tools on your page)
try please:#top .iconbox_left_content .iconbox_icon.hexagones, #top .iconbox_right_content .iconbox_icon.hexagones { font-size: 42px; line-height: 70px; }-
This reply was modified 7 years, 10 months ago by
Guenni007.
February 23, 2018 at 11:49 am #916595In reply to: How can I re-create this styling with Enfold?
well to get hexagone icons in enfold is not difficult to reach.
here you can get some of the clip-path : https://bennettfeely.com/clippy/
what is to do.
1) give the icon-box or icon-list a meaningful custom class (here it is hexagones)
2) this comes to quick css (yes without the ending e):
.hexagon { -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }3) this comes to functions.php of your child-theme:
function add_class_to_icon() { ?> <script type="text/javascript"> jQuery('.hexagones .iconbox_icon').css( 'border-radius' , '0px' ); jQuery('.hexagones .iconbox_icon').addClass('hexagon'); jQuery('.hexagones .iconlist_icon').css( 'border-radius' , '0px' ); jQuery('.hexagones .iconlist_icon').addClass('hexagon'); </script> <?php } add_action('wp_footer', 'add_class_to_icon');the clip-path must go to the icon itself. So we had to add the hexagon class to it via addClass
Results: https://webers-testseite.de/hexagons/
The demo https://kriesi.at/themes/enfold-medical/ seems to fit well for youFebruary 22, 2018 at 11:31 pm #916406Topic: Custom images for IconBox?
in forum Enfoldbonbuttercup
ParticipantInstead of using icons, is it possible to use images for the IconBox? If not, is there another way to utilize the functionality of the IconBox (the way the icons/text fade in, as well as the rollover functionality) but allow custom images in lieu of the icons?
Site is still in development but is http://www.tciwest.com/j4f/ and I’m looking to replace the icons under Current Rebates with thumbnail circle images of each boat. Please let me know if this is possible.
February 8, 2018 at 4:48 pm #909830In reply to: Make entire column clickable
First i edited again links are the same as above.
I added the option to set the link target !1) on which version of enfold you are with your install ?
2) what is behind that custom-class (iconboxstyle) ? (css code please)February 8, 2018 at 3:01 pm #909792Hi,
Oh ok. Please replace the icon boxes’ custom link “manually” with “#submit-details” then add the following script in the functions.php file.
// custom script add_action( 'wp_footer', 'ava_custom_script_tab_section' ); function ava_custom_script_tab_section() { ?> <script type="text/javascript"> (function($) { function scrollToTab(s, e,) { $(s).on(e, function(event) { var anchor, loc, cur, hash, tab, parent, pos; if( e == 'load' ) { loc = window.location.hash; hash = loc; } else { loc = $(this).attr('href'); hash = loc.substring(loc.indexOf('#')); } tab = $('.av-section-tab-title[href='+ hash +']'); parent = tab.parents('.av-tab-section-outer-container'); pos = parent.offset(); tab.trigger('click'); if(hash) { setTimeout( function() { $(window).scrollTop( pos.top - 100 ) }, 1000 ); } }); } scrollToTab( '#top .iconbox_top a', 'click' ); })(jQuery); </script> <?php }Best regards,
IsmaelFebruary 5, 2018 at 3:10 pm #908028In reply to: Use custom icons
Hi marquitoweb,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#top .iconbox.av-no-box .iconbox_icon { width: 50px; height: 50px; }If you need further assistance please let us know.
Best regards,
VictoriaJanuary 30, 2018 at 3:19 am #904581In reply to: (Newer) way to change IconBox title to H2?
Hi,
Here is a post for changing in the H in the iconbox: https://kriesi.at/support/topic/hn-for-iconlist/#post-903934
It’s a custom file.
As for you child theme, you may need to clear your browser cache a few times, along with any cache plugin and minify plugin for your site. Sometimes css files are the hardest to clear.Best regards,
MikeJanuary 24, 2018 at 4:27 am #901869In reply to: Equal height of icon boxes
Hi,
Please add a unique class attribute to the columns containing the iconbox ( ex: custom-column) then use the following script in the functions.php file.
//add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ ?> <script type="text/javascript"> (function($) { function a() { var maxHeight = 0; $('.custom-column .iconbox_content').each(function(){ var thisH = $(this).height(); if (thisH > maxHeight) { maxHeight = thisH; } }); $('.custom-column .iconbox_content').height(maxHeight); } $(window).on('load debouncedresize', function() { a(); }); })(jQuery); </script> <?php }Best regards,
IsmaelJanuary 23, 2018 at 10:18 pm #901720Topic: Icon Box style and Custom Classes
in forum Enfoldmcraig77
ParticipantAhoy,
I have some icon boxes and implemented a custom css class to them in order to hide the icon and shrink the text in one of them. Something seems off and I can’t seem to solve, perhaps you enfold genius’s can help!
For the first icon box I wan tot remove the icon and make the text normal size. I inserted this class .no-icon-homepage in the element and add this quick css. The icon disappears but the text doesn’t change
.no-icon-homepage .iconbox .iconbox_content .iconbox_content_title { font-size: 24px; } .no-icon-homepage .iconbox_icon.heading-color { display: none!important; }On The other page i have a custom class name .smaller-text. The text doesn’t change size for this… so i’m guessing the element for text on the icon box I found using inspector is wrong….
.smaller-text .iconbox .iconbox_content .iconbox_content_title { font-size: 12px; }January 22, 2018 at 4:38 am #900553In reply to: How to change Iconbox font and icon size.
Hey DROR,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#top #wrap_all .all_colors .avia-builder-el-5.iconbox h3.iconbox_content_title { font-size: 25px; } .avia-builder-el-5.iconbox .iconbox_content p:last-child { font-size: 22px; } #top .avia-builder-el-5.iconbox.iconbox_right_content.av-icon-style-no-border .iconbox_icon { font-size: 70px; }If you need further assistance please let us know.
Best regards,
VictoriaJanuary 16, 2018 at 11:16 pm #898184Topic: Custom Class Icon Box
in forum Enfoldmcraig77
ParticipantAhoy,
I added a custom class attribute to my icon box called no-icon and inspected the page using my inspector tool. I have several icons boxes used in my site but want to remove some of icons and circles just leaving the box. I than added this code to my in hope of removing that icon and circle from certain element but it doesn’t seem to work.
no-icon.iconbox_icon.heading-color { display: none; }Have any clues to why this isn’t working? I’m going to be using the no-icon class on a few different elements on a few different pages.
December 27, 2017 at 10:26 pm #892254Hey Colm,
You need to upload custom icon and use it.
https://kriesi.at/support/topic/how-to-add-custom-icons-to-iconbox/If you need further assistance please let us know.
Best regards,
VictoriaNovember 24, 2017 at 6:42 am #881075In reply to: anchors in navigation icons on iPad
Hi,
Thank you for the info.
We added the following script in the functions.php file.
// custom script add_action( 'wp_footer', 'ava_custom_script' ); function ava_custom_script() { ?> <script type="text/javascript"> (function($) { function a() { $('.iconbox').on('click', 'a', function(e) { var anchor, loc, cur, hash, tab, parent, pos; anchor = $(this).attr('href'); hash = anchor.substring(anchor.indexOf('#')); tab = $('p[id='+ hash +']'); parent = tab.parent('.av_textblock_section'); pos = parent.offset(); if(hash) $(window).scrollTop( pos.top - 100 ); }); } a(); })(jQuery); </script> <?php }Best regards,
IsmaelNovember 17, 2017 at 8:49 am #877973In reply to: Maximum Container Width
maybe it is better to have only on those iconboxes a pointer which has a link
so add a class with this code to iconboxes which includes an anchor in it and only give the css to those new class.add_action( 'wp_footer', 'ava_custom_script' ); function ava_custom_script() { ?> <script type="text/javascript"> (function($) { $('.iconbox').has('a').addClass('withlink'); function a() { $('.iconbox.withlink').on('click', function(e) { var link = $(this).find('a').attr('href'); window.location.href = link; }); } a(); })(jQuery); </script> <?php }.iconbox.withlink { cursor: pointer; }November 17, 2017 at 4:35 am #877897In reply to: Maximum Container Width
Hi,
Please add this code in the functions.php file.
// custom script add_action( 'wp_footer', 'ava_custom_script' ); function ava_custom_script() { ?> <script type="text/javascript"> (function($) { function a() { $('.iconbox').on('click', function(e) { var link = $(this).find('a').attr('href'); window.location.href = link; }); } a(); })(jQuery); </script> <?php }And add the following code in the Quick CSS field.
.iconbox { cursor: pointer; }Best regards,
IsmaelOctober 24, 2017 at 3:47 pm #868246In reply to: How to center bulleted list ?
please do erase all the rest you tried till now:
.su-list ul li { position: relative; left: 50%; transform: translateX(-50%); display: table !important; }maybe you play a bit with left positioning
BUT ! now you have to say if you only wanted to have it more specific. Because it goes to all su-lists
maybe you set a custom css on that fields where you like to have it
f.e. if you only want to have it on iconboxes:.iconbox .su-list ul li { position: relative; left: 47%; transform: translateX(-50%); display: table !important; }October 24, 2017 at 10:55 am #868076In reply to: How to center bulleted list ?
Hi,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
.iconbox_content_container ul { min-width: 100px; width: 50%; margin: 0 auto; text-align: left; }If you need further assistance please let us know.
Best regards,
VictoriaOctober 22, 2017 at 9:23 pm #867326In reply to: Equal height iconboxes
Hi KingFilly,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
.iconbox_top .iconbox_content { min-height: 245px; word-wrap: break-word; }But the amount of text is not equal and so on smaller screens, the rule can not apply.
If you need further assistance please let us know.
Best regards,
VictoriaOctober 9, 2017 at 5:57 pm #862011In reply to: Enfold Critical CSS
im not abble to generate a critical css that dont break my site
i followed this steps https://www.wpfaster.org/blog/how-to-use-autoptimize-inline-and-defer-css-option and generate this critical, but it still broking the theme
https://www.isopasse.com.br/span.onsale { background: #7e9a47; min-height: 32px; min-width: 32px; padding: 4px; font-size: 12px; position: absolute; text-align: center; line-height: 32px; top: 6px; left: 6px; margin: 0; border-radius: 20px; } ul.products li .onsale { top: 0; right: 0; left: auto; margin: -6px -6px 0 0; } .cart_dropdown { position: absolute; right: -60px; height: 46px; width: 46px; line-height: 46px; text-decoration: none; text-align: center; top: 50%; margin: -23px 0 0 0; border-radius: 2px; border-style: solid; border-width: 1px; font-weight: normal; z-index: 101; } .cart_dropdown_first { line-height: 38px; padding: 0; } .cart_dropdown_first .cart_dropdown_link { display: block; padding: 0; text-decoration: none; line-height: 44px; font-size: 15px; position: absolute; z-index: 2; width: 100%; height: 100%; } .cart_dropdown .dropdown_widget { clear: both; position: absolute; right: 7px; top: 0; width: 280px; line-height: 18px; display: none; padding-top: 54px; } .cart_dropdown .dropdown_widget .widget_shopping_cart_content { padding: 0; box-shadow: 0 10px 15px rgba(0,0,0,0.1); overflow: hidden; border-style: solid; border-width: 1px; text-align: left; border-radius: 2px; } .cart_dropdown .dropdown_widget .avia-arrow { top: 49px; left: auto; margin-left: 0; border-bottom: 0; border-right: 0; right: 10px; } .html_cart_at_menu.html_header_top #top .main_menu { right: 0; } #menu-item-shop.cart_dropdown { right: 0; top: 0; margin: 0; height: auto; border-top: 0; border-radius: 0; width: auto; position: relative; float: left; } .html_header_top #menu-item-shop.cart_dropdown { border-bottom: 0; } #menu-item-shop .cart_dropdown_link { background: transparent; margin: 0; left: 0; color: inherit; position: relative; width: auto; padding: 0 38px; float: left; line-height: 88px; } #menu-item-shop .dropdown_widget { right: -1px; top: 100%; padding: 0; margin-top: -1px; } .av_minimal_header #menu-item-shop .dropdown_widget { margin-top: 0; } #menu-item-shop .dropdown_widget .avia-arrow { top: -5px; right: 40px; } .html_cart_at_menu.html_main_nav_header #top .main_menu .menu>li:last-child { padding-right: 13px; margin-right: 20px; } #top .onsale { background: rgba(0,0,0,.8); z-index: 10; color: #FFF; background: #7e9a47; top: 17px; right: 8px; left: auto; margin: 0; min-width: 40px; } .avia-bullet { display: block; position: absolute; height: 0; width: 0; top: 51%; margin-top: -3px; left: -3px; border-top: 3px solid transparent !important; border-bottom: 3px solid transparent !important; border-left: 3px solid green; } #top div .dropdown_widget_cart { display: none; -webkit-perspective: 1000px; -webkit-backface-visibility: hidden; } #top .av-cart-counter { position: absolute; top: 50%; left: 54%; height: 16px; padding: 0 5px; line-height: 16px; border-radius: 54px; font-size: 11px; background: #333; color: #fff; text-align: center; margin: -20px 0 0 2px; -webkit-transform: scale(0.3); transform: scale(0.3); opacity: 0; } @media only screen and (max-width:767px) { .responsive #top .cart_dropdown { position: absolute; top: 50%; margin-top: -23px; } .responsive #top #menu-item-shop.cart_dropdown { margin: 0; top: 0; border: 0; height: 100%; width: auto; line-height: 80px; position: static; margin-left: -39px; } .responsive #top #menu-item-shop .cart_dropdown_link { line-height: 80px; } .responsive.html_cart_at_menu #top .main_menu .menu>li:last-child { padding-right: 13px; margin-right: 20px; } } html { min-width: 910px; } html.responsive { min-width: 0; } .container { position: relative; width: 100%; margin: 0 auto; padding: 0 50px; clear: both; } .inner-container { position: relative; height: 100%; width: 100%; } .container_wrap { clear: both; position: relative; border-top-style: solid; border-top-width: 1px; } .units { float: left; display: inline; margin-left: 50px; position: relative; z-index: 1; min-height: 1px; } #wrap_all { width: 100%; position: static; z-index: 2; overflow: hidden; } body .units.alpha, body div .first { margin-left: 0; clear: left; } body .units.alpha { width: 100%; } .container .av-content-full.units { width: 100%; } .container { max-width: 1010px; } @media only screen and (min-width:768px) and (max-width:989px) { .responsive #top { overflow-x: hidden; } .responsive .container { max-width: 782px; } } @media only screen and (max-width:767px) { .responsive #top { overflow-x: hidden; } .responsive #top #wrap_all .container { width: 85%; max-width: 85%; margin: 0 auto; padding-left: 0; padding-right: 0; float: none; } .responsive .units { margin: 0; } .responsive #top #wrap_all .flex_column { margin: 0; margin-bottom: 20px; width: 100%; } } .container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; } .clearfix:before, .clearfix:after, .flex_column:before, .flex_column:after { content: '\0020'; display: block; overflow: hidden; visibility: hidden; width: 0; height: 0; } .flex_column:after, .clearfix:after { clear: both; } .clearfix { zoom: 1; } body div .first { margin-left: 0; } div .flex_column { z-index: 1; float: left; position: relative; min-height: 1px; width: 100%; } div .av_one_third { margin-left: 6%; width: 29.333333333333332%; } html, body, div, span, h3, p, a, img, strong, ul, li, article, footer, header, nav { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } article, footer, header, nav { display: block; } body { line-height: 1em; } ul { list-style: none; } * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } html.responsive, .responsive body { overflow-x: hidden; } body { font: 13px/1.65em "HelveticaNeue","Helvetica Neue",Helvetica,Arial,sans-serif; color: #444; -webkit-text-size-adjust: 100%; } .helvetica-websave { font-family: Helvetica,"HelveticaNeue","Helvetica Neue",Arial,Verdana,sans-serif; } h3 { font-weight: 600; } h3 { font-size: 20px; line-height: 1.1em; margin-bottom: 8px; } p { margin: .85em 0; } strong { font-weight: bold; } a { text-decoration: none; outline: 0; max-width: 100%; max-width: none\9; } a:visited { outline: 0; text-decoration: underline; } #top .avia_hidden_link_text { display: none; } ul { margin-bottom: 20px; } ul { list-style: none outside; margin-left: 7px; } img, a img { border: 0; padding: 0; margin: 0; display: inline-block; max-width: 100%; height: auto; image-rendering: optimizeQuality; } [data-av_icon]:before { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: normal; content: attr(data-av_icon); speak: none; } #header { position: relative; z-index: 501; width: 100%; background: transparent; } #header_main .container, .main_menu ul:first-child>li a { height: 88px; line-height: 88px; } .av_icon_active_left .social_bookmarks { float: left; } .av_secondary_right .sub_menu { float: right; } .av_phone_active_right .phone-info { float: right; } .phone-info { float: left; font-weight: bold; line-height: 20px; font-size: 11px; padding: 5px 0; } .phone-info span { display: inline-block; line-height: 1em; } .av_secondary_right .sub_menu>ul>li:last-child { border: 0; margin-right: 0; padding-right: 0; padding-left: 10px; } .av_secondary_right .sub_menu { padding-left: 10px; } #header_meta { border-top: 0; z-index: 10; min-height: 30px; border-bottom-style: solid; border-bottom-width: 1px; margin-bottom: -1px; } #header_meta .container { min-height: 30px; } #header_main { border-bottom-width: 1px; border-bottom-style: solid; z-index: 1; } .header_bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: .95; filter: alpha(opacity=95); z-index: 0; -webkit-perspective: 1000px; -webkit-backface-visibility: hidden; } .html_header_sticky_disabled .header_bg { opacity: 1; filter: alpha(opacity=100); } .av_minimal_header .header_bg { opacity: 1; filter: alpha(opacity=100); } .av_minimal_header #header_main, .av_minimal_header #header_meta { border: 0; } .av_minimal_header .avia-menu-fx { display: none; } .av_minimal_header #header_main .container, .av_minimal_header .main_menu ul:first-child>li a { height: 90px; line-height: 90px; } .av_minimal_header_shadow { box-shadow: 0 0 2px 1px rgba(0,0,0,0.1); } .av-hamburger { padding: 0; display: inline-block; font: inherit; color: inherit; text-transform: none; background-color: transparent; border: 0; margin: 0; overflow: visible; } .av-hamburger-box { width: 35px; height: 24px; display: inline-block; position: relative; } .av-hamburger-inner { display: block; top: 50%; margin-top: -2px; } .av-hamburger-inner, .av-hamburger-inner::before, .av-hamburger-inner::after { width: 40px; height: 3px; background-color: #000; border-radius: 3px; position: absolute; } .av-hamburger-inner::before, .av-hamburger-inner::after { content: ""; display: block; } .av-hamburger-inner::before { top: -10px; } .av-hamburger-inner::after { bottom: -10px; } .av-burger-menu-main { display: none; } .av-burger-menu-main a { padding-left: 10px; } .av-hamburger strong { display: none; } .av-hamburger-box { height: 8px; } .av-hamburger-inner, .av-hamburger-inner::before, .av-hamburger-inner::after { width: 100%; } #top .av-small-burger-icon { -ms-transform: scale(0.6); transform: scale(0.6); transform-origin: right; } #top #wrap_all #header .av-small-burger-icon a { padding: 0; } div .logo { float: left; position: absolute; left: 0; z-index: 1; } .logo, .logo a { overflow: hidden; position: relative; display: block; height: 100%; } .logo img { padding: 0; display: block; width: auto; height: auto; max-height: 100%; image-rendering: auto; position: relative; z-index: 2; height: 100%\9; height: auto\9; } .main_menu { clear: none; position: absolute; z-index: 100; line-height: 30px; height: 100%; margin: 0; right: 0; } .av-main-nav-wrap { float: left; position: relative; z-index: 3; } .av-main-nav-wrap ul { margin: 0; padding: 0; } .av-main-nav { z-index: 110; position: relative; } .av-main-nav li { float: left; position: relative; z-index: 20; } .av-main-nav>li { line-height: 30px; } .av-main-nav li a { max-width: none; } .av-main-nav>li>a { display: block; text-decoration: none; padding: 0 13px; font-weight: normal; font-size: 12px; font-weight: 600; font-size: 13px; } .avia-menu-fx { position: absolute; bottom: -1px; height: 2px; z-index: 10; width: 100%; left: 0; opacity: 0; visibility: hidden; } .current-menu-item>a>.avia-menu-fx { opacity: 1; visibility: visible; } .avia-menu-fx .avia-arrow-wrap { height: 10px; width: 10px; position: absolute; top: -10px; left: 50%; margin-left: -5px; overflow: hidden; display: none; visibility: hidden; } .current-menu-item>a>.avia-menu-fx>.avia-arrow-wrap, .current_page_item>a>.avia-menu-fx>.avia-arrow-wrap { display: block; } .avia-menu-fx .avia-arrow-wrap .avia-arrow { top: 10px; } .html_main_nav_header.html_logo_left #top .main_menu .menu>li:last-child>a { padding-right: 0; } .main_menu .avia-bullet { display: none; } .avia-bullet { display: block; position: absolute; height: 0; width: 0; top: 51%; margin-top: -3px; left: -3px; border-top: 3px solid transparent !important; border-bottom: 3px solid transparent !important; border-left: 3px solid green; } #top #menu-item-search { z-index: 100; } #top .menu-item-search-dropdown>a { font-size: 17px; } #top #menu-item-search.menu-item-search-dropdown>a { border-left: 0; } .avia-arrow { height: 10px; width: 10px; position: absolute; top: -6px; left: 50%; margin-left: -5px; -webkit-transform: rotate(45deg); transform: rotate(45deg); border-width: 1px; border-style: solid; visibility: hidden\9; } #top .social_bookmarks { height: 30px; z-index: 150; -webkit-backface-visibility: hidden; margin: 0 0 0 -9px; } #top .social_bookmarks li { height: 100%; float: left; padding: 0; border-right-style: solid; border-right-width: 1px; display: block; width: 30px; } #top #header .social_bookmarks li:last-child { border-right-style: none; border-right-width: 0; } #top .social_bookmarks li a { float: left; width: 30px; line-height: 30px; display: block; margin: 0; outline: 0; padding: 0; min-height: 30px; height: 100%; overflow: visible; z-index: 2; position: relative; text-align: center; } #top #wrap_all .social_bookmarks, #top #wrap_all .social_bookmarks a, #top #wrap_all .social_bookmarks li { background: transparent; } .sub_menu { float: left; z-index: 2; font-size: 11px; line-height: 30px; position: relative; top: 10px; } #top .sub_menu>ul { float: left; margin: 0; } #top .sub_menu>ul, #top .sub_menu>ul>li { background: transparent; } .sub_menu li { float: left; position: relative; padding: 0 10px; border-right-style: solid; border-right-width: 1px; line-height: 10px; } .sub_menu>ul>li>a { text-decoration: none; font-weight: bold; padding: 7px 0; } .content { padding-top: 50px; padding-bottom: 50px; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; min-height: 1px; z-index: 1; } .content { border-right-style: solid; border-right-width: 1px; margin-right: -1px; } .content .entry-content-wrapper { padding-right: 50px; } .fullsize .content { margin: 0; border: 0; } .fullsize .content .entry-content-wrapper { padding-right: 0; } .more-link-arrow:after { content: "\E87d"; font-family: 'entypo-fontello'; font-size: 10px; vertical-align: middle; padding: 0 8px; } .html_elegant-blog .more-link-arrow { display: none; } #scroll-top-link { position: fixed; border-radius: 2px; height: 50px; width: 50px; line-height: 50px; text-decoration: none; text-align: center; opacity: 0; right: 50px; bottom: 50px; z-index: 1030; visibility: hidden; } @media only screen and (min-width:768px) and (max-width:989px) { .responsive .main_menu ul:first-child>li>a { padding: 0 10px; } .responsive #top .header_bg { opacity: 1; filter: alpha(opacity=100); } .responsive .logo { float: left; } .responsive .logo img { margin: 0; } } @media only screen and (max-width:767px) { .responsive .content .entry-content-wrapper { padding: 0; } .responsive .content { border: 0; } .responsive #top #wrap_all #header { position: relative; width: 100%; float: none; height: auto; margin: 0 !important; opacity: 1; min-height: 0; } .responsive #top #main { padding-top: 0 !important; margin: 0; } .responsive .phone-info { float: none; width: 100%; clear: both; text-align: center; } .responsive .phone-info span { margin: 0; padding: 0; border: 0; } .responsive #top .logo { position: static; display: table; height: 80px !important; float: none; padding: 0; border: 0; width: 80%; } .responsive .logo a { display: table-cell; vertical-align: middle; } .responsive .logo img { height: auto !important; width: auto; max-width: 100%; display: block; max-height: 80px; } .responsive #header_main .container { height: auto !important; } .responsive #top .header_bg { opacity: 1; filter: alpha(opacity=1); } .responsive #header_meta .social_bookmarks li { border-style: solid; border-width: 1px; margin-bottom: -1px; margin-left: -1px; } .responsive #top #header_meta .social_bookmarks li:last-child { border-right-style: solid; border-right-width: 1px; } .responsive #header .sub_menu, .responsive #header_meta .sub_menu>ul { float: none; width: 100%; text-align: center; margin: 0 auto; position: static; } .responsive #header .social_bookmarks { padding-bottom: 2px; width: 100%; text-align: center; height: auto; line-height: .8em; margin: 0; } .responsive #header_meta .sub_menu>ul>li { float: none; display: inline-block; padding: 0 10px; } .responsive #header .social_bookmarks li { float: none; display: inline-block; } .responsive .logo img { margin: 0; } .responsive #top .av_phone_active_right .phone-info.with_nav span { border: 0; } .responsive #top #header_meta .social_bookmarks li a { color: inherit; border-color: inherit; background: inherit; } .responsive .av-burger-menu-main { display: block; } .responsive #top #wrap_all .main_menu { top: 0; height: 80px; left: auto; right: 0; display: block; position: absolute; } .responsive .main_menu ul:first-child>li a { height: 80px; line-height: 80px; } .responsive #top .av-main-nav .menu-item { display: none; } .responsive #top .av-main-nav .menu-item-avia-special { display: block; } .responsive #top #wrap_all .menu-item-search-dropdown>a { font-size: 24px; } .responsive #top #header .social_bookmarks { display: none; } .responsive #top .av-logo-container .avia-menu { height: 100%; } .responsive #top #header_main>.container .main_menu .av-main-nav>li>a, .responsive #top #wrap_all .av-logo-container { height: 80px; line-height: 80px; } .responsive #top #wrap_all .av-logo-container { padding: 0; } .responsive #top #header_main>.container .main_menu .av-main-nav>li>a { min-width: 0; padding: 0 0 0 20px; margin: 0; border-style: none; border-width: 0; } .responsive #top #header .av-main-nav>li>a { background: transparent; color: inherit; } .responsive #scroll-top-link { display: none; } } @media only screen and (max-width:479px) { .responsive #top #wrap_all #header .social_bookmarks { display: none; } } .avia-shadow { box-shadow: inset 0 1px 3px rgba(0,0,0,.1); } body .container_wrap .avia-builder-el-no-sibling { margin-top: 0; margin-bottom: 0; } body .container_wrap .avia-builder-el-last { margin-bottom: 0; } body .container_wrap .avia-builder-el-first { margin-top: 0; } .special-heading-border { position: relative; overflow: hidden; } .av-special-heading-h1 .special-heading-border { height: 3.4em; } .av-special-heading-h2 .special-heading-border { height: 2.6em; } .av-special-heading-h3 .special-heading-border { height: 1.9em; } .special-heading-inner-border { display: block; width: 100%; margin-left: 15px; border-top-style: solid; border-top-width: 1px; position: relative; top: 50%; opacity: .15; filter: alpha(opacity=15); } .custom-color-heading .special-heading-inner-border { opacity: .4; filter: alpha(opacity=40); } body .av-special-heading.blockquote>* { white-space: normal; float: none; } body .av-special-heading.blockquote .special-heading-border { display: none; } .avia-section { clear: both; width: 100%; float: left; min-height: 100px; position: static; } .avia-section.avia-section-small { min-height: 0; } #top #main .avia-section .template-page { width: 100%; border: 0; margin-left: auto; padding-left: 0; margin-right: auto; } .avia-section .template-page .entry-content-wrapper { padding-right: 0; } .avia-section-small .content { padding-top: 20px; padding-bottom: 20px; } .html_header_sticky_disabled .container_wrap:first-child { border-top: 0; } #top #wrap_all #main .avia-no-border-styling { border: 0; } .html_minimal_header #main>.avia-builder-el-0 { border-top: 0; } #top .iconbox { background: transparent; } .iconbox { margin-bottom: 30px; position: relative; clear: both; } .iconbox_icon { float: left; margin: 2px 10px 0 0; height: 23px; width: 23px; font-size: 23px; line-height: 18px; } .iconbox_left .iconbox_icon { border-radius: 50px; text-align: center; position: relative; top: -7px; left: -5px; height: 30px; width: 30px; line-height: 30px; margin: 2px 0 0 0; } .iconbox .iconbox_content .iconbox_content_title { border: medium none; padding: 2px 0 0 0; position: relative; margin: 0 0 16px 0; clear: none; letter-spacing: 1px; text-transform: uppercase; font-size: 1.25em; } .iconbox .iconbox_content p:last-child { margin-bottom: 0; } #top .iconbox_content_container { line-height: 1.65em; } @media only screen and (max-width:767px) { .responsive #top .avia-slideshow-controls a { display: none; } } .avia-slideshow { position: relative; margin: 50px 0; width: 100%; clear: both; overflow: hidden; } .avia-slideshow-inner { padding: 0; margin: 0; position: relative; overflow: hidden; width: 100%; } #top .av-default-height-applied .avia-slideshow-inner { height: 0; } .avia-slideshow li { padding: 0; margin: 0; list-style-type: none; list-style-position: outside; position: absolute; visibility: hidden; z-index: 1; top: 0; left: 0; width: 100%; clear: both; opacity: 0; overflow: hidden; } .avia-slideshow li:first-child { position: relative; visibility: visible; z-index: 3; } .avia-slideshow li img { display: block; width: 100%; margin: 0 auto; border-radius: 3px; position: relative; } .avia-slideshow.image_no_stretch li img { width: auto; } #top .avia-slideshow-arrows a { display: block; text-decoration: none; color: #fff; visibility: visible; position: absolute; width: 60px; text-align: center; height: 60px; line-height: 62px; font-size: 25px; top: 50%; margin: -30px 15px 0; z-index: 99; overflow: hidden; text-indent: -600%; } #top .avia-slideshow-arrows a.next-slide { right: 0; } .avia-slideshow-arrows a:before { visibility: visible; display: block; position: absolute; z-index: 100; background: #aaa; background: rgba(0,0,0,0.3); top: 0; left: 0; right: 0; bottom: 0; border-radius: 3px; text-align: center; line-height: 62px; color: inherit; } .prev-slide:before { text-indent: -2px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .next-slide:before { border-top-left-radius: 3px; border-bottom-left-radius: 3px; text-indent: 0; } .avia-slideshow-dots { position: absolute; z-index: 200; width: 100%; bottom: 0; text-align: center; left: 0; height: 0; } .avia-slideshow-dots a { display: inline-block; height: 13.5px; width: 13.5px; border-radius: 14px; background: #000; opacity: .6; filter: alpha(opacity=60); text-indent: 100px; overflow: hidden; margin: 0 1px; padding: 7px; position: relative; bottom: 33px; -webkit-backface-visibility: hidden; } .avia-slideshow-dots a.active { opacity: .8; filter: alpha(opacity=80); background: #fff; } .avia-slideshow-inner li { -webkit-transform-style: preserve-3d; } .avia-fullwidth-slider { border-top-style: solid; border-top-width: 1px; z-index: 1; } .avia-fullwidth-slider.avia-builder-el-0 { border-top: 0; } .avia-slide-wrap { position: relative; display: block; } .av_slideshow_full.avia-slideshow { margin: 0; } #top .av_slideshow_full.av-control-default .avia-slideshow-arrows a { margin: -50px 0 0 0; width: 35px; text-align: center; height: 100px; line-height: 102px; opacity: .5; } #top .av_slideshow_full.av-control-default .next-slide:before { border-top-right-radius: 0; border-bottom-right-radius: 0; line-height: 102px; } #top .av_slideshow_full.av-control-default .prev-slide:before { border-top-left-radius: 0; border-bottom-left-radius: 0; line-height: 102px; } .av_slideshow_full li img { border-radius: 0; } body { font-size: 14px; } html, #scroll-top-link { background-color: #0d716a; } #scroll-top-link { color: #fff; border: 1px solid #0d716a; } .html_stretched #wrap_all { background-color: #0d716a; } .alternate_color div { border-color: #e1e1e1; } .alternate_color .special-heading-inner-border { border-color: #a2a2a2; } .main_color, .main_color div, .main_color header, .main_color footer, .main_color article, .main_color span, .main_color h3, .main_color p, .main_color a, .main_color img, .main_color ul, .main_color li, .main_color article, .main_color footer, .main_color header { border-color: #e1e1e1; } .main_color { background-color: #f8f8f8; color: #666; } .main_color .heading-color, .main_color h3 { color: #263373; } .main_color .special-heading-inner-border { border-color: #666; } .main_color a { color: #82a846; } .main_color ::-webkit-input-placeholder { color: #8d8d8d; } .main_color ::-moz-placeholder { color: #8d8d8d; opacity: 1; } .main_color :-ms-input-placeholder { color: #8d8d8d; } #main { border-color: #e1e1e1; } .header_color, .header_color div, .header_color nav, .header_color span, .header_color a, .header_color img, .header_color strong, .header_color ul, .header_color li, .header_color nav { border-color: #e1e1e1; } .header_color { background-color: #fff; color: #263373; } .header_color .social_bookmarks a, .header_color .phone-info, .header_color .phone-info a { color: #aaa; } .header_color a, .header_color strong { color: #558b87; } .header_color .avia-menu-fx, .header_color .avia-menu-fx .avia-arrow { background-color: #558b87; color: #fff; border-color: #336965; } .header_color .container_wrap_meta { background: #f8f8f8; } .header_color .avia-bullet { border-color: #558b87; } .header_color ::-webkit-input-placeholder { color: #aaa; } .header_color ::-moz-placeholder { color: #aaa; opacity: 1; } .header_color :-ms-input-placeholder { color: #aaa; } .header_color .header_bg { background-color: #fff; color: #aaa; } .header_color .sub_menu>ul>li>a, .header_color .main_menu ul:first-child>li>a { color: #aaa; } .header_color .main_menu ul:first-child>li.current-menu-item>a, .header_color .main_menu ul:first-child>li.current_page_item>a { color: #263373; } .header_color .sub_menu ul li, .header_color .sub_menu ul { background-color: #fff; } #main { background-color: #fff; } .header_color .av-hamburger-inner, .header_color .av-hamburger-inner::before, .header_color .av-hamburger-inner::after { background-color: #aaa; } .header_color .av-hamburger-inner, .header_color .av-hamburger-inner::before, .header_color .av-hamburger-inner::after { background-color: #263373; } @media only screen and (max-width:767px) { #top .header_color .av-hamburger-inner, #top .header_color .av-hamburger-inner::before, #top .header_color .av-hamburger-inner::after { background-color: #263373; } } @media only screen and (max-width:767px) { .header_color div .av-hamburger-inner, .header_color div .av-hamburger-inner::before, .header_color div .av-hamburger-inner::after { background-color: #aaa; } } #top .main_color .onsale { background-color: #82a846; } .header_color .cart_dropdown_first .cart_dropdown_link { color: #263373; } .header_color .cart_dropdown .dropdown_widget { color: #aaa; } .header_color .cart_dropdown .dropdown_widget .widget_shopping_cart_content, .header_color .cart_dropdown_link, .header_color .avia-arrow { background-color: #fff; } .header_color .avia-bullet { border-color: #aaa; } #top .av-cart-counter { background-color: #558b87; color: #fff; } body { font-family: ' helvetica','HelveticaNeue','Helvetica Neue',Helvetica,Arial,sans-serif; } .container { width: 100%; } .responsive .container { max-width: 1310px; } #top #header .av-main-nav>li>a { font-size: 14px; } #top #header_meta { background-color: #0d716a; } #top #header_meta a, #top #header_meta li, #top #header_meta .phone-info { color: #fff; border-color: #0d716a; } ul.cart_dropdown { border: 0 !important; } #top .main_color .onsale { background-color: #2997ab; display: none; } .avia-fullwidth-slider.avia-shadow { box-shadow: none; } @media only screen and (max-width:767px) { #top #header_main .logo { width: 50% !important; } } #top #wrap_all .av-social-link-facebook a { color: #fff; background-color: #37589b; } #top #wrap_all .av-social-link-twitter a { color: #fff; background-color: #46d4fe; } #top #wrap_all .av-social-link-gplus a { color: #fff; background-color: #de5a49; } #top #wrap_all .av-social-link-whatsapp a { color: #fff; background-color: #3bb528; } #top #wrap_all .av-social-link-linkedin a { color: #fff; background-color: #409cca; } #top #wrap_all .av-social-link-instagram a { color: #fff; background-color: #a67658; } #top #wrap_all .av-social-link-youtube a { color: #fff; background-color: #a72b1e; } p, a, strong { color: black !important; } a { text-decoration: underline; } .container { width: 100%; } #top { overflow-x: hidden; } .container { width: 100%; margin: 0 auto; } .units { margin: 0; } #top .flex_column { margin: 0; margin-bottom: 20px; width: 100%; } #header_main { border-bottom: 0; } nav, #scroll-top-link { display: none; } .avia-shadow { box-shadow: inset 0 0 0 rgba(0,0,0,0); } .content { border: 0; } .avia-fullwidth-slider { display: none; }-
This reply was modified 8 years, 3 months ago by
Guilherme Pereira.
Hi!
Please go to Enfold theme options > Layout Builder and check “Show element options for developers” and then edit your element and give it a custom CSS class (“your-custom-class” in example below) and then use the code as following
.your-custom-class .iconbox_content { padding-top:5px; }Best regards,
YigitOctober 7, 2017 at 6:05 am #861316Topic: Custom Color Picker for WooCommerce
in forum EnfoldKahil
ParticipantTHIS IS NOT A SUPPORT REQUEST, IT’S JUST THE TIP BRO
If you’re using the Advanced Layout option to build your WooCommerce product pages, here is a simple way to include a custom color picker that will output the hex code. This is great for products where you offer a custom color option. Note, this won’t automatically put the hex code into any input boxes, but it will allow your customers to find the right color so they can copy/paste the code into the appropriate field. Once you add the code below to your child theme’s functions.php file and have edited it to reflect the script file locations, you can place the shortcode into a code snippet widget and place wherever you want. I used the shortcode in conjunction with an iconbox field so I could give directions.
You will need to download, then upload a few simple javascript files….then adjust the code below to reflect the location. Feel free to scan the files for errors prior to uploading to your server…always a smart thing to do.
DOWNLOADHere is an example…

// Add color picker script to header add_action('wp_head','get_custom_color'); function get_custom_color( ){ echo '<script src="[replace with direct location to file - custom-color.js]"></script>'; echo '<script src="[replace with direct location to file - jscolor.js]"></script>'; } // Create color picker shortcode function get_colorpicker() { $misccode = "{onFineChange:'update(this)',valueElement:null,value:'66ccff'}"; return '<div style="padding-top:8px!important;"><button class="jscolor '. $misccode .'" style="width:40px; height:40px; border: 1px solid #e1e1e1; float: left; margin: 0px 10px 15px 5px; border-radius:3px;"></button><div style="font-size:20px!important; margin-top:8px;"><span id="hex-str" style="color:#959595!important;"><span style="font-size:50px!important; vertical-align:text-top!important; color:#959595!important;">☚</span> Choose a color...</span></div></div>'; } add_shortcode( 'color_picker', 'get_colorpicker' );-
This topic was modified 8 years, 3 months ago by
Kahil.
-
This reply was modified 7 years, 10 months ago by
-
AuthorSearch Results
-
Search Results
-
Hi, I updated the theme to the latest version and a custom CSS code that was given to me here before is no longer working:
.page-id-18256 #av-layout-grid-1 .iconbox_icon {
margin-left: 44px;
position: relative;
top: 14px;
}It should align the iconbox icon but it isn’t. It was working great before I updated the theme.
Topic: Custom images for IconBox?
Instead of using icons, is it possible to use images for the IconBox? If not, is there another way to utilize the functionality of the IconBox (the way the icons/text fade in, as well as the rollover functionality) but allow custom images in lieu of the icons?
Site is still in development but is http://www.tciwest.com/j4f/ and I’m looking to replace the icons under Current Rebates with thumbnail circle images of each boat. Please let me know if this is possible.
Ahoy,
I have some icon boxes and implemented a custom css class to them in order to hide the icon and shrink the text in one of them. Something seems off and I can’t seem to solve, perhaps you enfold genius’s can help!
For the first icon box I wan tot remove the icon and make the text normal size. I inserted this class .no-icon-homepage in the element and add this quick css. The icon disappears but the text doesn’t change
.no-icon-homepage .iconbox .iconbox_content .iconbox_content_title { font-size: 24px; } .no-icon-homepage .iconbox_icon.heading-color { display: none!important; }On The other page i have a custom class name .smaller-text. The text doesn’t change size for this… so i’m guessing the element for text on the icon box I found using inspector is wrong….
.smaller-text .iconbox .iconbox_content .iconbox_content_title { font-size: 12px; }Topic: Custom Class Icon Box
Ahoy,
I added a custom class attribute to my icon box called no-icon and inspected the page using my inspector tool. I have several icons boxes used in my site but want to remove some of icons and circles just leaving the box. I than added this code to my in hope of removing that icon and circle from certain element but it doesn’t seem to work.
no-icon.iconbox_icon.heading-color { display: none; }Have any clues to why this isn’t working? I’m going to be using the no-icon class on a few different elements on a few different pages.
THIS IS NOT A SUPPORT REQUEST, IT’S JUST THE TIP BRO
If you’re using the Advanced Layout option to build your WooCommerce product pages, here is a simple way to include a custom color picker that will output the hex code. This is great for products where you offer a custom color option. Note, this won’t automatically put the hex code into any input boxes, but it will allow your customers to find the right color so they can copy/paste the code into the appropriate field. Once you add the code below to your child theme’s functions.php file and have edited it to reflect the script file locations, you can place the shortcode into a code snippet widget and place wherever you want. I used the shortcode in conjunction with an iconbox field so I could give directions.
You will need to download, then upload a few simple javascript files….then adjust the code below to reflect the location. Feel free to scan the files for errors prior to uploading to your server…always a smart thing to do.
DOWNLOADHere is an example…

// Add color picker script to header add_action('wp_head','get_custom_color'); function get_custom_color( ){ echo '<script src="[replace with direct location to file - custom-color.js]"></script>'; echo '<script src="[replace with direct location to file - jscolor.js]"></script>'; } // Create color picker shortcode function get_colorpicker() { $misccode = "{onFineChange:'update(this)',valueElement:null,value:'66ccff'}"; return '<div style="padding-top:8px!important;"><button class="jscolor '. $misccode .'" style="width:40px; height:40px; border: 1px solid #e1e1e1; float: left; margin: 0px 10px 15px 5px; border-radius:3px;"></button><div style="font-size:20px!important; margin-top:8px;"><span id="hex-str" style="color:#959595!important;"><span style="font-size:50px!important; vertical-align:text-top!important; color:#959595!important;">☚</span> Choose a color...</span></div></div>'; } add_shortcode( 'color_picker', 'get_colorpicker' );
