-
AuthorPosts
-
January 15, 2019 at 12:41 am #1053893
Hi,
I am working on a website new.viaremovals.co.uk
I am trying to create header button like the one shown on https://www.humanitycarerelief.org.uk/ (Donate) – Only to be shown on Desktop
I am trying to create a button similar to https://www.u4h.org.uk/ (100% Donation Policy) – It only shows on Mobile version of the website
Please can you give me step by step guide as to how do I create this type of button.
I want to call the button Our Reviews on Yell.com
Details on the website in private.
January 16, 2019 at 12:29 am #1054413Hi,
By copying the settings from another thread I managed to create the button here http://new.viaremovals.co.uk/however I would like the button to be narrow and thin like above the header
At the moment it is showing very thick button.
Please can someone guideFYI and Special thanks to @Guenni007 (https://kriesi.at/support/topic/social-icons-in-the-footer-3/#post-942800)
I did the following
Copied the following code to Child Function.php
add_action(‘ava_main_header’, function() {
echo ‘<div class=”button-on-top”>’;
echo do_shortcode(“[av_button_big label='Our Reviews on Yell.com' description_pos='below' link='manually,https://www.yell.com/biz/via-removals-and-storage-ltd-colne-7835837/' link_target='_blank' icon_select='no' icon='ue800' font='entypo-fontello' custom_font='#000000' color='custom' custom_bg='#fad800' color_hover='custom' custom_bg_hover='#d9751a' custom_class='' admin_preview_bg=''][/av_button_big]“);
echo ‘</div>’;
});Then copied the following in quick CSS
#top #button-on-top .avia-button-fullwidth {
padding: 10px 0px;
}The button works but as I said above the I want to make it narrow.
- This reply was modified 5 years, 9 months ago by projectt_co_uk.
January 16, 2019 at 12:30 am #1054416Ohh finally I forgot to ask Can I include an image in the button or an icon in the button?
How would I do that?
And it is showing as round button on some screens. I would like it to be straight full screen.
Check here: http://new.viaremovals.co.uk/product/house-removal
Thank you.
- This reply was modified 5 years, 9 months ago by projectt_co_uk.
January 16, 2019 at 8:39 pm #1054711Hi projectt_co_uk,
You need to create a custom header widget area and add the buttons in there as widgets and then control the display with css for different screen sizes.
If you need further assistance please let us know.
Best regards,
VictoriaJanuary 17, 2019 at 1:59 am #1054819Hi Victoria,
I have followed the instructions and inserted the codes as follows
FUNCTION.PHP
add_action( ‘ava_main_header’, ‘enfold_customization_header_widget_area’ );
function enfold_customization_header_widget_area() {
dynamic_sidebar( ‘header’ );
}HEADER WIDGET
[av_button_big label='Our Reviews on Yell.com' description_pos='below' link='manually,https://www.yell.com/biz/via-removals-and-storage-ltd-colne-7835837/' link_target='_blank' icon_select='no' icon='ue800' font='entypo-fontello' custom_font='#000000' color='custom' custom_bg='#fad800' color_hover='custom' custom_bg_hover='#d9751a' custom_class='' admin_preview_bg=''][/av_button_big]CSS
#top .av-fullscreen-button .avia-button-fullwidth {
padding: 10px 0px;
}The button is still very thick …
Now it has created extra white space at the top for desktop and mobile instead of being right at the top without any gap.
Please can you give me a solution to this problem.
Thank you
January 17, 2019 at 2:37 am #1054826I have got the button in place now.
I have inserted this code
[av_button_big label='Our Reviews on YELL.COM' description_pos='below' link='manually,https://www.yell.com/biz/via-removals-and-storage-ltd-colne-7835837/' link_target='_blank' icon_select='yes' icon_hover='aviaTBicon_hover' icon='ue82b' font='entypo-fontello' color='custom' custom_font='#000000' color='custom' custom_bg='#fad900' color_hover='custom' custom_bg_hover='#e67227' custom_class='' admin_preview_bg=''][/av_button_big]
However it is not showing the icon on the button I would like to show love heart icon on the button.
Please can you help.
Kind regards,
http://www.projectt.co.ukJanuary 18, 2019 at 6:40 pm #1055597Hi projectt_co_uk,
https://cl.ly/ebbd25c1934d I am seeing the heart. Is this not what you’ve been trying to achieve?
Great work by the way!
Best regards,
VictoriaJanuary 24, 2019 at 1:52 am #1057992Hi Victoria,
Yes I managed to resolve the issue…
Thank you for your help.
Kind regards,
http://www.projectt.co.ukJanuary 24, 2019 at 6:43 pm #1058296Hi projectt_co_uk,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
VictoriaJanuary 14, 2021 at 9:19 pm #1272531Hi,
I know this an old thread.
But the issue is the same.
The above solution which worked at the time has stopped working since the update. I am not sure what has changed but the buttons are now broken on mobile.
Desktop seems to working okay.
Please can someone help.
I am having a similar issue on another website for which there is another case logged.
January 17, 2021 at 3:40 pm #1273074Hi projectt_co_uk,
Could you please attach some screenshots of the issue?
I do not see any button in the header, only the one in the menu.
Best regards,
VictoriaJanuary 18, 2021 at 11:24 am #1273298I had to disable the code as the website was completely broken. I am having the same issue across multiple websites.
Another ticket logged here with the similar issue.
I have taken the screenshot of the issue for Desktop issue and Mobile Issue
Desktop
https://www.humanitycarerelief.org.uk/wp-content/uploads/2021/01/HCR-Page-Capture.pngMobile
https://www.humanitycarerelief.org.uk/wp-content/uploads/2021/01/Mobile-1.jpg
https://www.humanitycarerelief.org.uk/wp-content/uploads/2021/01/Mobile-2.jpg
https://www.humanitycarerelief.org.uk/wp-content/uploads/2021/01/Mobile-3.jpg
https://www.humanitycarerelief.org.uk/wp-content/uploads/2021/01/Mobile-4.jpgPlease please can someone help me with this?
Kind regards
January 18, 2021 at 7:34 pm #1273427Hi projectt_co_uk,
I am not very clear from the screenshots which part is not working, what does it have to look like? Do you have images from before?
Best regards,
VictoriaJanuary 18, 2021 at 11:44 pm #1273504Hi Victoria,
I will break it down for you.
I want to create a full-width sticky button above the header.
I did the following to implement it
**In Header Widget I have added**[av_button_big label='DONATE' description_pos='below' icon_select='yes-left-icon' icon='ue806' font='entypo-fontello' link='manually,https://www.humanitycarerelief.org.uk/donations/support-humanity-care-relief-projects/' link_target='' size='large' position='center' icon_select='yes' icon_hover='aviaTBicon_hover' icon='ue82b' font='entypo-fontello' color='custom' custom_bg='#db332a' custom_font='#ffffff' admin_preview_bg=''][/av_button_big]
**In Function.php I am adding**
add_action( ‘ava_main_header’, ‘enfold_customization_header_widget_area’ );
function enfold_customization_header_widget_area() {
dynamic_sidebar( ‘header’ );
}**In Quick CSS I have added**
@media only screen and (min-width: 990px) {
#header .widget { display: none !important; }
}custom_html-2 .custom-html-widget {padding: 0 50px; width: 767px;
margin: auto;}
#custom_html-2.widget {background-color: #ffcd03;}
#custom_html-3 .avia-button.avia-size-large {
font-size: 20px!important;
}
@media only screen and (max-width: 767px) {
#custom_html-2 .custom-html-widget {
width: auto;
}
}
#header .widget {
left: 0;
top: -5px;
transform: translate(0%);
width: 100%;
padding: 0;
}Once I done that … then the layout of my website broke down.
See screen shot #1
https://www.humanitycarerelief.org.uk/wp-content/uploads/2021/01/Mobile-1.jpg
What’s wrong with this screen shot
1. look at the height of the button
2. where is the burger menu
3. it is showing social icons when it shouldnt show
4. Save Live in Yemen (it is showing two banners whilst top one is for Desktop and the bottom one for mobileSee screen shot #2
https://www.humanitycarerelief.org.uk/wp-content/uploads/2021/01/Mobile-2.jpgMobile view is showing 3 column when it should show each image in single column
See screen shot #3
https://www.humanitycarerelief.org.uk/wp-content/uploads/2021/01/Mobile-3.jpgSame issue as above
See screen shot #4
https://www.humanitycarerelief.org.uk/wp-content/uploads/2021/01/Mobile-4.jpgSame issue as above the whole mobile layout is broken.
I had to disable all the codes on the website as I wasn’t getting any response from the support team. Because I cannot leave the website in this state.
There is something wrong with the HTML code but I am struggling to figure out what.
Because as soon as I enable that this happens.
So far everytime I had a problem your support team has helped me but this time it’s been slow.
If you see this ticket and the other ticket I have provided login details at both of them so if you want you can login and enable those codes and see it yourself.
Looking forward to hearing from you.
PS. if you can give me exact UK time when you are online to see this then I can enable the code so you can see the live website being affect by this.
Kind regards,
January 19, 2021 at 12:49 pm #1273682Hi projectt_co_uk,
Thank you for clarifying. https://share.getcloudapp.com/kpuNgxLY I see the widget and it will show up on screen sizes 768px and above if you remove the css hiding it.
https://share.getcloudapp.com/P8umBqy6 Here I see the button and the burger, but no social share icons, since there is no room for them. We can have them show up if you need.
https://share.getcloudapp.com/geuoLe4y The footer looks exactly like this on my iPhone.
Could you please clear the cache, check again and get back to us.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.