Hi,
Great, I’m glad that Mike could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hi,
I want to align a apecial heading on the top of a color section. I tried different things but nothing worked so far.
To be more specific:
On the shared website in private content there is a picture of me on a mountain where a special heading appears on the right side. The heading is vertical centered and I want the heading on the top.
Inside my color section there are 1/3 rows. The rows are all equal height and vertical alignment “top”, but it doesn’t work.
Also find this piece of code in another thread, so I set the developer ID and CSS class of the specific row “align-content-top” and put following code to the quick css. Hasn’t worked either.
.av-align-middle.align-content-top {
vertical-align: top;
}
Thanks in advance for your help.
-
This topic was modified 2 years, 2 months ago by
josikrop1. Reason: del. private content
Hi Mike,
They work “alright”. But I would like to alter the size of them on mobile and could not get the media query (last of Ismaels code above) for the colors to work. But I better check all my code before bothering you :)
I’m thinking it might be due to how they are implemented in the table cells:
<p> <span class=”yellow”></span><span class=”petrol”></span><span class=”pearl”></span><span class=”sand”></span><span class=”white”></span></p>
…but they work on desktop.
Hi,
On my website https://lehrlingsdays.at/ there is a portfolio grid.
Is it possible to display a specific category when the page loads? By default, all portfolio entries are shown when the page loads. However, I do not want to display all of them; I only want to show the entries from a specific category. Is that possible?
Thanks!
great thank you :-)
I’m trying to have different font sizes in a text block that display on desktop and smaller on mobile and trying to use the “Font sizes” – “Textblock Font Sizes” and changing smaller screens settings to 20px for Font Size for small screens (between 480px and 767px – eg: Tablet Portrait) and Font Size for very small screens (smaller than 479px – eg: Smartphone Portrait) but its not making it any smaller than the default (which is what I want for larger screens.
cheers
Natasha
Hey rixi,
Thank you for the inquiry.
The theme creates custom queries or sorting for the Magazine or Blog Posts element, which cannot be adjusted by the plugin. If you want to adjust the order of the items, please use this filter in the functions.php file.
/** adjust the magazine element query **/
function avf_magazine_entries_query_mod($query, $params)
{
if(is_page(123))
{
$query['order'] = 'ASC';
$query['orderby'] = 'title';
}
return $query;
}
add_filter('avf_magazine_entries_query','avf_magazine_entries_query_mod', 10, 2);
You can also use the following filter to add more sorting options to the magazine element.
// https://kriesi.at/support/topic/reversing-the-order-of-specific-blog-posts/#post-1395842
Best regards,
Ismael
Hi,
The ID result_ajax_response_1 is only in the page DOM after the contact form is submited and won’t be there on the page load.
Note that this is inside on the ajaxresponse_1 ID, and on page load ajaxresponse_1 is empty.
I’m not sure what your options are with Page Patch criterium in GTM but perhaps you can also get the page ID so you will know what page it is.
You could also add a custom field to your pages which could be added to the body classes for better information than the page ID, see this thread for an example.
Best regards,
Mike
Hi,
For mobile try this slow scroll to anchor with offset function in your child theme functions.php, I tested in on your page by injecting it in the browser and it seemed to work well.
function slow_scroll_to_anchor_with_offset() { ?>
<script>
(function($) {
var width = $(window).width();
if ((width <= 767)) {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
&& location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top - 80 //offset
}, 1000);
return false;
}
}
});
//Executed on page load with URL containing an anchor tag.
if($(location.href.split("#")[1])) {
var target = $('#'+location.href.split("#")[1]);
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top - 80 //offset
}, 1000);
return false;
}
}
} else {}
}(jQuery));
</script>
<?php
}
add_action( 'wp_footer', 'slow_scroll_to_anchor_with_offset', 99 );
Best regards,
Mike
Hi,
Great, I’m glad that Mike could help you out :-)
Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hi,
I’m not seeing a top margin for the first .flex_column_table, only after the first one. Are you hiding the first one with some custom css? Please link to your page so we can examine, perhaps you have a different issue.
The latest version is now v5.6.10
Best regards,
Mike
this is actually still the case that this top margin of 50px is there. I am currently struggling to get it out of the way, the above css code (with margin 0px seems to be ignored
Hi,
Thanks for the video and the link to your site. Your plugin Autoptimize was causing the error, I disabled it and now your “2.0” image shows:

please clear your browser cache and check.
Best regards,
Mike
Hi,
I have checked your homepage on Windows in Chrome, Firefox, & Edge and the slider at the top with the button seems to be the same in each browser. I didn’t see any “zooming” on hover in the slider, but I did on a image lower on the page that looks like a office.
Above you write that the “zooming” only works when you are logged in, typically this would point to an error in the cached files since typically when you are logged in you are not served any cached files. Often when the theme and a plugin minifys the files an error can occur due to the nature of “minifying” which removes spaces & certain characters. It looks like your site is also using a CDN, cloudflare which could be serving the bad files.
Try disabling the Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression and enable Enfold Theme Options ▸ Performance ▸ Delete old CSS and JS files, then clear and disable your caching plugin and your server cache and your CDN, it could take a few hours your your site to start serving the same files as when you are logged it, especially for cloudflare which can take up to 24 hours.
Best regards,
Mike
Hey domchocolate,
Thank you for your patience and the link to your site, to tab though the menu, skipping sub-menu items unless the down or up arrow keys are used please try this javascript in your child theme functions.php file in Appearance ▸ Editor:
function tab_though_menu_skipping_sub_menu_items_unless_down_or_up_arrow_keys_are_used() { ?>
<script>
document.addEventListener('DOMContentLoaded', function () {
const menuItems = document.querySelectorAll('.menu-item-has-children'); // Adjust this selector to match your menu structure
// Initially set tabIndex to -1 for all sub-menu items to skip them in tab navigation
menuItems.forEach(item => {
let subMenuItems = item.querySelectorAll('.sub-menu a'); // Adjust this selector for your sub-menus
subMenuItems.forEach(subMenuItem => {
subMenuItem.tabIndex = -1;
});
item.addEventListener('keydown', function (e) {
// Only proceed if the event target is a menu item that contains a sub-menu
let subMenu;
if (e.target.classList.contains('menu-item-has-children')) {
subMenu = e.target.querySelector('.sub-menu'); // Adjust this selector for your sub-menus
} else {
// This ensures we get the sub-menu even if a child of the menu item was focused
subMenu = e.target.closest('.menu-item-has-children').querySelector('.sub-menu');
}
let subMenuItems = subMenu.querySelectorAll('a'); // Assumes sub-menu items are anchor tags
let focusedElement = document.activeElement;
let currentIndex = Array.from(subMenuItems).indexOf(focusedElement);
switch(e.key) {
case 'ArrowDown':
// Move focus to the next sub-menu item
if (currentIndex < subMenuItems.length - 1) {
subMenuItems[currentIndex + 1].tabIndex = 0;
subMenuItems[currentIndex + 1].focus();
e.preventDefault(); // Prevent scrolling the page
} else {
// Optionally wrap around to the first item
subMenuItems[0].tabIndex = 0;
subMenuItems[0].focus();
e.preventDefault(); // Prevent scrolling the page
}
break;
case 'ArrowUp':
// Move focus to the previous sub-menu item
if (currentIndex > 0) {
subMenuItems[currentIndex - 1].tabIndex = 0;
subMenuItems[currentIndex - 1].focus();
e.preventDefault(); // Prevent scrolling the page
} else {
// Optionally wrap around to the last item
subMenuItems[subMenuItems.length - 1].tabIndex = 0;
subMenuItems[subMenuItems.length - 1].focus();
e.preventDefault(); // Prevent scrolling the page
}
break;
}
// Reset tabIndex to -1 for items not focused to ensure they're skipped during tab navigation
subMenuItems.forEach(subMenuItem => {
if (subMenuItem !== document.activeElement) {
subMenuItem.tabIndex = -1;
}
});
});
});
});
</script>
<?php
}
add_action( 'wp_footer', 'tab_though_menu_skipping_sub_menu_items_unless_down_or_up_arrow_keys_are_used', 99 );
I tested this on your site by injecting it in the browser and it worked good with your desktop menu.
Best regards,
Mike
-
This reply was modified 2 years, 2 months ago by
Mike. Reason: updated to correct error
Hi,
Great, I’m glad that we could help. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hi,
Great, I’m glad that we could help. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
***UPDATE*** The zooming issue where the caption and button are showing just fine: It was NOT working in Chrome and Safari, but WAS working in Firefox . . . this was because I was logged into my WP dashboard. As soon as I logged out and cleared my browser cache/history, the zoom stopped working in Firefox as well.
Any ideas what this is? I don’t think it’s a minification stylesheet thing since I cleared all minification caches etc, then disabled WP fastest cache, then cleared browser history/cache and the same thing happened.
SO close to this doing exactly what I want!
Hi there,
I have embedded video from wistia on site alongside embedded news feed via taggbox. For some reason this is requesting ‘click here to display content’ rahter than autoplay as it should. This happens with each refresh. The site is still under construction and in coming soon mode. Is there some script that needs enabled in order to have the content appear automatically? I would prefer to host videos elsewhere rather than on the site as it can be laggy.
Many thanks
Hi,
Great, I’m glad that we could help. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hi,
Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hey bemodesign,
Please try the following in Quick CSS under Enfold->General Styling:
#top .av-custom-form-color .button {
border-color: green;
}
#top .av-custom-form-color .button:hover {
border-color: blue;
background-color: red;
color: white;
}
Best regards,
Rikard
Hi,
Great, I’m glad that we could help. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hi Jon,
Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
@guenni007
Here’s what’s weird: The problem of caption/button only showing up upon hover does NOT happen in Chrome . . . but it does happen in Firefox and Safari, even after completely restarting and verifying all is updated (and clearing all caches etc).
Furthermore . . . the above problem is fixed if I remove the link for the entire pic in the slider. Once I unlinked, the button and the caption showed up fine.
So, for simplicity, what I’ve decided to do is just add an href to the html that goes in the caption Make an Appointment
That seems to be working in all browsers (with the exception of the zoom effect has stopped working in chrome and safari, but works fine in firefox . . . not a deal breaker).
I have to focus on some other stuff, but am going to come back and try your idea because I’d prefer to have the entire pic as a link without the overlay.
Y’all have been incredibly helpful as I try to figure this out. It means a lot. I’ll keep ya posted on progress.
J
sorry just to mention – my first solution will work with both – see again that example page
you only have to get rid of that overlay ( or have a less z-index for it – and higher z-index for the button-wrapper.
Unfortunately, I can’t help you keep the different codes of the different solution approaches apart. My solution – as you can see on the example page – works.
https://webers-testseite.de/easy-slider/
_______________
maybe for your solution to put the button code to caption input area – it is also enough to get rid of overlay or to have a different z-index:
#top .av-slideshow-caption .av-button {
z-index: 5;
}
#top a .image-overlay {
display: none !important;
z-index: 4 !important;
}
Hello.
We are aware that most browsers like Chrome, Edge etc purposefully prevent audio playing when a video (set to autoplay) loads with a webpage. Our question is this: is there any code that we can use, for example in a button labeled “Turn On The Sound”, that will turn on the audio. In the Private Content, I’m including a link and password to a page where we would use such a feature if it existed. You will see that we have told page visitors to scroll down to the video player bar to turn on the sound. That’s a less-than-the-best-user-friendly solution. So if there’s a “button” solution that we could use instead, we would.
Many thanks.
Hi Ismael. Appreciate this however slight issue. I added this to \wp-content\themes\enfold\functions.php and added the shortcode to a codeblock. This is how it’s turned out (private content). There’s 2 menus and style is different. How do I get rid of the top menu and change styling to be the same as original picture? Thanks
Update: it’s formatted correctly when outside a layout element / colour section (however I would like it within one). duplicate navigation remains in both cases.
-
This reply was modified 2 years, 2 months ago by
TBant.
Not for the button, there is no button. It is for the height of top image on Mobile view for this page. I had to add a “blank” png on the left side, in order to show more of the top image photo.
So even on desktop, I want the info switched from right side to left. and left to right.
I see how you can adjust this when its in mobile view, but not desktop.