Tagged: x
-
AuthorPosts
-
September 29, 2016 at 4:39 am #1195459
joimaradonixParticipantHello Support Theme x, according to your answer ticket #1165933, please guide me to give me code how to create button in x-top bar, because in my website now http://www.hfmarketsjakarta.com i use third party shortcode button, i want to use recommendation from theme x, i have two button with different color, please check in my website.
could you give me to give shortcode so i can change the code button, and the short code will work like my button now. please your help
September 29, 2016 at 4:44 am #1195465
joimaradonixParticipantalso i must create button in every page, for example this page : http://hfmarketsjakarta.com/akun-mikro/ , even i must create button in right side bar widget. can you told me step by step how i must create to button like page link above, please help
September 29, 2016 at 5:51 am #1195523
LelyModeratorHi There,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Then add the following code on your child theme’s functions.php file:
add_filter('x_option_x_topbar_content', 'top_bar_content_shortcode'); function top_bar_content_shortcode ( $content ) { return do_shortcode ( $content ); }That code will make your topbar ready to accept shortcode. Then check this link:http://demo.theme.co/integrity-1/shortcodes/buttons/ for button shortcode.
Just please note that shortcode is now prefix with x_. Something like this:
[x_button type="real" shape="square" size="regular" style="background-color: #ff2a13; color: #ffffff;" href="https://www.hfmarkets.com/id/my_login.html" class="fasc-button fasc-type-glossy"]Login myHotForex[/x_button] [x_button type="real" shape="square" size="regular"regular style="background-color: #079246; color: #ffffff;" href="https://www.hfmarkets.com/id/account-types/new-live-account.html?refid=279422" target="_blank" class="fasc-button fasc-type-glossy"]Pendaftaran Akun[/x_button]If it’s in Cornerstone, we can use button element. On other places like sidebar or topbar we can use shortcode.
Hope this helps.
September 29, 2016 at 9:15 am #1195764
joimaradonixParticipantit is very confused for me, do you have any way to do it?
September 29, 2016 at 11:54 am #1196004
JadeModeratorHi there,
The steps provided previously are pretty step forward. You will have to download, install and activate the child theme from here then login through FTP and add this to the functions.php file of the child theme which you can find in wp-content/themes/x-child:
add_filter('x_option_x_topbar_content', 'top_bar_content_shortcode'); function top_bar_content_shortcode ( $content ) { return do_shortcode ( $content ); }Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1165711 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
