Forum Replies Created
-
AuthorPosts
-
Hi,
This should work on mobile too, I took a look to see, but it doesn’t seem like you have the code installed yet because the desktop version is the same.Best regards,
MikeAugust 19, 2018 at 6:04 pm in reply to: Addition of new section at page bottom fails. Disappears when page is saved #999003Hi,
I didn’t repair the code because I don’t have a login, I looked at your source code in my browser to find the error, but you will still need to fix it.Best regards,
MikeHi,
Ok, I made a few more changes, Please clear your browser cache and check.
New final functions.php:function custom_timeline(){ ?> <script> jQuery(window).load(function(){ jQuery('.av-milestone h2.av-milestone-date').replaceWith(function () { return jQuery('<span/>', { html: jQuery(this).html() }); }); }); </script> <?php } add_action('wp_footer', 'custom_timeline');New final CSS:
.avia-timeline span strong { color: #858585 !important; font-size: 25px !important; } .av-milestone-odd span strong { float:right !important; } .avia-timeline-vertical.av-milestone-placement-alternate li.av-milestone-even > span:first-child { display: none; }Best regards,
MikeHi,
Glad to hear, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeAugust 19, 2018 at 4:20 pm in reply to: Addition of new section at page bottom fails. Disappears when page is saved #998936Hey clbdcnpafe,
Typically this is due to unclosed tags, a quick check of your page source code revels a missing span tag in one of your toggles:<h3><span style="color: #000000; line-height: 1.5;">How can a corporate sponsor truly leverage a performing artist corporate sponsorship originated by NPAFE? What about Image Compatibility, Audience Composition, Media, Exclusivity, Measurability, and all the other things that have to work well for a brand? How easy is this to do?</h3>There maybe others.
A easy way to check for unclosed tags is to Enable Avia Layout Builder Debug and copy all of the page shortcode and paste it into the Closing Tag Checker
Then correct the code and paste back into the debugger and save.Best regards,
MikeHi,
Thank you for the login, I have changed the function and the css, now it is working correctly without any H tags.
Please clear your browser cache and check.
Here is the final code:
functions.php:function custom_timeline(){ ?> <script> jQuery(window).load(function(){ jQuery('.av-milestone-even h2.av-milestone-date:nth-child(even)').replaceWith(function () { return jQuery('<span/>', { html: jQuery(this).html() }); }); jQuery('.av-milestone-odd h2.av-milestone-date:nth-child(odd)').replaceWith(function () { return jQuery('<span/>', { html: jQuery(this).html() }); }); }); </script> <?php } add_action('wp_footer', 'custom_timeline');CSS:
.avia-timeline span strong { color: #858585 !important; font-size: 25px !important; } .av-milestone-odd span strong { float:right !important; }Best regards,
MikeHi,
Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
MikeAugust 19, 2018 at 2:52 pm in reply to: color changing background and text on mouse over for columns? #998927Hi,
Glad to hear, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeHi,
Yes, the button can be manually adjusted with css, if you include a link to the page and give us an idea of what size you would like it, we can assist.
If your site is in maintenance, or hidden, please include a login in the Private Content area.Best regards,
MikeHi,
Thanks for sharing your solution, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeHi,
Glad to hear, I liked the first one best too.
Unless there is anything else we can assist with on this issue, shall we close this then?Best regards,
MikeHi,
Glad to hear, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeHi,
I see you are getting this error: Uncaught ReferenceError: jQuery is not defined
Can you please include a admin login in the private content area so we can take a closer look.
I will change the H3 to a span, I assume you still want the text to be the same color and font size though?Best regards,
MikeHi,
Please try this code instead, it’s light green, turning to a darker green on hover:.avia_cart_buttons.single_button:hover { background-color: rgba(127, 191, 63, 0.8) !important; opacity: 1 !important; } .avia_cart_buttons.single_button { background-color: rgba(127, 191, 63, 0.5) !important; opacity: 1 !important; } #top .avia_cart_buttons .button:hover > span,#top .main_color .avia_cart_buttons .button:hover,#top .avia_cart_buttons .button > span,#top .main_color .avia_cart_buttons .button { color: #fff !important; }Best regards,
MikeHi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
MikeHi,
I have two solutions for you to try, this first just adds a little margin between the image and text:@media only screen and (max-width: 767px) { .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-image { margin-right: 10% !important; margin-left: 10% !important; }This second solution, creates two rows, with the text below the image, and manages many different widths:
@media only screen and (max-width: 430px) { .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-meta-mini { display: inline-block !important; text-align: center !important; } .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-image { margin-left: 30% !important; } } @media only screen and (min-width: 431px) and (max-width: 767px) { .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-image { margin-left: 20% !important; margin-right: 5% !important; } } @media only screen and (min-width: 768px) and (max-width: 1024px) { .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-meta-mini { display: inline-block !important; text-align: center !important; } .avia-testimonial-row .avia-testimonial-meta .avia-testimonial-image { margin-left: 30% !important; } }Best regards,
MikeHi,
That is great news, unless there is anything else we can assist with, shall we close this then?Best regards,
MikeAugust 19, 2018 at 12:20 am in reply to: color changing background and text on mouse over for columns? #998821Hey OhYa1337,
This can be done with a little css, please link to the page with the cells, so we can assist with the css.
How to add a link to a column or cell
How to add a on-hover background color to a columnBest regards,
MikeHi,
I have tested this code in my functions.php, and it worked correctly:function remove_title_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('a').removeAttr('title'); jQuery('img').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');If you are using a child theme functions.php, then please ensure that this bit of code is at the very top of the file:
<?phpBest regards,
MikeHi,
Thank you for sharing your solution, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
MikeHi,
The errors that you were getting above are from having already tried to install the demo and then trying again.
If you have to try a second time you will need to reset the site with a plugin such as WP-Reset
Please try to reset your site, and then extract and import the uploads.zip file I have attached in the Private Content area. It is all of the images for the Spa demo, please upload them as two folders, 2015 & 2016.
Then try using the custom demo installer “spa.xml” at: WordPress > tools > Import
this will allow your site to import the images from your server instead of ours.
After the import, you will need to set the front-page in the theme settings, and set the menu to the correct one. Then if you notice any colors not quite right, you can import the “spa-demo-theme-settings.txt” at: Enfold Theme Options > Import/Export > Import Settings that I have included just in case.
If you would like a hand with this, please include a working admin login & FTP access in the Private Content area. (the details you posted didn’t work for me)Best regards,
MikeHi,
Glad Rikard could help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
MikeHey better_in_violet,
You could add this css code in the General Styling > Quick CSS field:.form_element input[type='submit'].button { background-color: blue !important; }If this doesn’t help, Please include the url to the page in question so we can take a closer look.
Best regards,
MikeHey sumio17,
To create a button in the top bar, also called the Header Phone Number/Extra Info bar, first ensure that it is enabled by going to Enfold Theme Options > Header > Extra Elements > Phone Number or small info text, and choose “Display in top bar at the right” or left option.
Then open a new post, you don’t need to fill in the title because you are not going to save it, you only want to use the default editor. Choose the wand tool and find the option for buttons.

Then fill in your options, such as the size, color, url, etc.

Then I recommend copying the shortcode from the “text” tab so none of the quotes turn into curly quotes.

Now you can paste the code in the Enfold Theme Options > Header > Extra Elements > Phone Number or small info text field and save.

Enjoy.

Best regards,
MikeHey mrqslmk,
Try adding this code to the end of your functions.php file in Appearance > Editor:function custom_timeline(){ ?> <script> jQuery(window).load(function(){ jQuery('.av-milestone-even h2.av-milestone-date:nth-child(even)').replaceWith(function () { return $('<h3/>', { html: $(this).html() }); }); jQuery('.av-milestone-odd h2.av-milestone-date:nth-child(odd)').replaceWith(function () { return $('<h3/>', { html: $(this).html() }); }); }); </script> <?php } add_action('wp_footer', 'custom_timeline');Then add this code in the General Styling > Quick CSS field:
.avia-timeline h3 strong { color: #858585 !important; font-size: 25px !important; } .av-milestone-odd h3 strong { float:right !important; }Best regards,
MikeHi,
Thank you for checking and ruling those possible issues out.
I took a look at your one error and it turned out to be a misspelling, so I fix it.
I also found your menu issue, it was this in your css on line 30:.logo { margin: -37px 0 0 0!important; z-index: 80; }the -37px was pulling it up, so I changed to -17px which seems to look good, but feel free to adjust to suit.
I also noticed that the mobile menu opens under the slider, this is due to a z-index of 900 on line 197:div#full_slider_1, .topper { height: 225px; z-index:900; position:relative; }So I changed it to 100, but feel free to adjust to suit.
Best regards,
MikeHi,
That is great news, we will close this now. Thank you for using Enfold.Best regards,
MikeAugust 18, 2018 at 4:47 pm in reply to: WRONG MOBILE MENU – fixes for mobile menu spacing, font styling #998725Hey Munford,
Sorry for the late reply,
I have tested your mobile menu in Chrome, Firefox, Edge, IE11 & Android and I couldn’t recreate the errors in your screenshots, but if you are seeing these errors in the iPhone, I can ask another team member to look for you.It looks like your mobile menu is swapped by this function in your child theme functions.php:
/*add new mobile menu swap*/ function av_different_mobile_menu( $args = '' ) { if(wp_is_mobile() && $args['menu_id'] == 'avia-menu') { $args['menu'] = 'main-menu-mobile'; } return $args; } add_filter( 'wp_nav_menu_args', 'av_different_mobile_menu' );so the “main-menu-mobile” menu would be your mobile menu, the problem is that this function doesn’t determine what is “mobile” by screen size, it only returns the HTTP_USER_AGENT which is unreliable (more)
My own tests shows that my desktop chrome in developer mode sends the “mobile” agent, but my Android chrome doesn’t. Firefox and Edge both don’t send the right user agent.
A more reliable solution would be to have one menu and hide menu items based on screen width
Or to write a more complex function that replaces the “wp_is_mobile” with a function that gets the screen width, I had hoped to give you that here, but I didn’t find it within a reasonable amount of time.
Please consider using the linked solution above.To remove the bold text on the menu items such as “roundtrips”, please remove the “strong” tags from the menu titles.

Best regards,
MikeHi,
Adding a custom class to the social share buttons will not work because we need to remove the padding and margin from the container that the buttons are in. If the buttons are in a color section, then please add a custom ID to the color section, if not then please try adding the buttons to a color section.
If you include a admin login in the private content area, I will be happy to demonstrate what I’m trying to explain.
But please explain what other sections were changed with this solution so we can see if this can be corrected.Best regards,
MikeHi,
I see that you do have a old header.php that should be updated with a current version because Enfold v4.1.1 has some new functions in it, that has caused issues for sites that use a child theme and a old header.php with the latest version. Mostly the errors have to o with the lightbox script.
Since you said you developed this site a while back and don’t remember your changes, I created a difference report between your child theme header.php and the header.php in v4.0.7, so you can see your changes and then figure how to incorporate them into the v4.1.1 header.php
Please see link in the Private Content area.
I also see that your child theme style.css has a warning that there are 66 errors that need to be corrected.
These two issues could be the cause for your issue, please try addressing, and let us know if this helps.Best regards,
Mike -
AuthorPosts
