Forum Replies Created
-
AuthorPosts
-
actually, i think i have the solution
function append_custom_menu_item($sidebar_menu, $args, $post) { // Check if the current page is either '/africa' or a subpage of '/africa' $is_africa_page = ($post->post_name === 'africa'); $is_africa_subpage = ($post->post_parent && get_post($post->post_parent)->post_name === 'africa'); if ($is_africa_page || $is_africa_subpage) { $custom_menu_item = '<li class="page_item"><a href="your-custom-url">Your Custom Menu Item</a></li>'; $sidebar_menu = str_replace('</ul>', $custom_menu_item . '</ul>', $sidebar_menu); } return $sidebar_menu; } add_filter('avf_sidebar_menu_filter', 'append_custom_menu_item', 10, 3);
just one last question related to this, is it possible to add this to just a specific parent, e.g. all sub pages of /africa (for example)
wow – that is super cool – thank you Ismael !
August 25, 2024 at 10:58 pm in reply to: hide “— Advanced Layout Builder” text under appearance / menus #1465378happy for you to close it Rikard – can I do that at all? save you having to…
August 23, 2024 at 8:18 am in reply to: hide “— Advanced Layout Builder” text under appearance / menus #1465211that is perfect – many thanks Guenni007
thank you @Ismael !
hey @Isamel, that first link (https://kriesi.at/documentation/enfold/custom-layout-and-dynamic-content/) is asking me for a password…
hi @Isamel,
yeah, that would totally work but it’s the client that is going to be updating this content, so that’s not going to be a workable solution for them.
would it be easier to pull through post content in this case?
title, tag (or category) featured image & excerpt
the thing is, this is almost like a dummy post, it will link off to an external URL.
ACF maybe?
what do you think, i’m trying to make tis as simple as possible for the client.brilliant @Ismael – I appreciate that explanation
again, super awesome support here Mike – really appreciate it
perfect – many thanks Mike
hi Mike,
i’ve been having issues with dynamic css as well, and that code snippet you provided seems to have fixed those issues, with this particular site.function custom_avf_post_css_create_file( $create ) { return false; } add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );
can you please provide a little detail on what that code does & why it may have been required?
thanks heaps,
Jasonactually, i might just give you a little more info on my setup.
it’s a plesk server running nginx & redis object cache.
i’m actually using wp-rocket for the front end caching side of things (i don’t have much switched on).
to complicate matters more(?) dns is with cloudflare, so i also have to periodically clear the cache there.
no performance settings enable in enfold.- This reply was modified 8 months, 3 weeks ago by Jason.
March 5, 2024 at 1:49 am in reply to: Portfolio grid not working / displaying all categories / or sorting #1436320This reply has been marked as private.February 15, 2021 at 12:37 am in reply to: Background YouTube Videos shows error after first successful play of the video #1280446i’m having exactly the same issue – can anyone help please?
hey Ismael,
yes, I added that code. the client has asked that it does stick to the top of the screen on mobile (on scroll – not how i’ve done it).
can you shed any light as to how i might go about that? or, an argument as to why its a bad idea – so i can feedback to the client?
thanks heaps :)
Jasonok, that plugin works a treat – the free version has limitations – but for what i need it seems to cover the bases.
thanks Ismael, i never even thought of looking for a plugin, will give it a shot & report back
November 3, 2020 at 2:46 am in reply to: Can you help me create something similar to your scroll-top-link arrow? #1257828done, works a treat. changed the css slightly to get the image in place:
#chat-bot:before { content: ""; width: 81px; height: 81px; background-size: 81px 81px; background-image: url(https://domain.com/wp-content/uploads/2020/10/have-your-say.png); display: inline-block; }
one thing i’d like to replicate is the fading in on scroll – like with the up arrow.
i’ll see if i can figure it out & report back – but if you know what to look for, please let me know :)November 2, 2020 at 5:21 am in reply to: Can you help me create something similar to your scroll-top-link arrow? #1257517Hi Mike,
Thanks heaps for your reply, that should work a treat, I’ll give it a shot & report back :)happy to close please Jordan, all sorted thank you
September 30, 2020 at 12:36 am in reply to: blog post / grid layout / color code based on category #1249513ok, i’ve found some other references to something similar to what i want to do, but i’m still not having any luck adding a different post style for each category
i did find this post Grid Layout change background by category but i’m a little stuck on the comment by YigitYou can copy the file inside “shortcodes” folder on your child theme and add this code in Functions.php file of your child theme
i’ve followed along as best i can, but i’m still not getting the unique category css class added to the post (in order to style it).
any additional pointers?
thanks heaps,
Jasonperfect – thank you Nikko
September 28, 2020 at 9:01 pm in reply to: blog post / grid layout / color code based on category #1249175Hi Victoria,
That makes sense – any chance you could point me in the right direction with regard to those files?actually, one last thing – how easy is it to reduce the space between columns (the left margin), so it works across devices as expected?
perfect, thank you Nikko
September 27, 2020 at 9:46 pm in reply to: blog post / grid layout / color code based on category #1248876hi Rikard,
thanks for that, it’s not the css as such (i know how to write that), it’s being able to apply that border & colour automatically to posts (as they are added), & assigned to specific categories.
so any posts assigned to the hot tips category would have the blue border, any assigned to workshop, yellow (etc, etc).
i need a way to apply specific css to a category if you like.
does that explain things a little clearer?
Jasonsorry about the delay – details below
September 25, 2020 at 12:46 am in reply to: blog post / grid layout / color code based on category #1248285sure thing, details below
i cleared my cache at cloudflare, the js file was (from memory) common-min.js (or simiar).
if you’re not using cloudflare, then it’ll be whatever you (or your host) uses for caching that you’ll need to clear.
hope that helps!i’ve fixed it, it was a (cloudflare) cached js file causing the issue
-
AuthorPosts