Forum Replies Created
-
AuthorPosts
-
Hi,
if(get_post_type( $post_id ) == "post" || is_archive('xxx'))
xxx is the category ID number
your original code has is_archive() || is_category() but is_archive() covers is_category() so you should not need both, then add the category IDBest regards,
MikeJune 6, 2024 at 11:32 pm in reply to: Die alte Version konnte nicht in das Verzeichnis upgrade-temp-backup verschoben #1448575Hi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHey Erin,
Try this solutionBest regards,
MikeHey blaircomm1,
Thank you for your patience, I have not worked with TypeKit fonts, but ttf fonts need to be in a “zip” file to be uploaded, did you try this?
Can you post the font so we can try, please also post post a screenshot or a link to the font display.Best regards,
MikeHi,
Thank you for the link to your site, for your first post, I don’t see that the page “jumps” when the element is clicked
as for your second post, this is not possible, when you are on the first page you are seeing a element, on the second page you are seeing the post.Best regards,
MikeHi,
Ok thank you, I understand better now 🙂, but your site has changed since that video, Lesestoff entdecken is not a menu option now.
So I try to adjust this with the menu item Buchtipps I hope that I understand correctly.
So the items under Buchtipps so header of Veranstaltungen, so basically your Veranstaltungen is built-in:
you can create a difficult code based on the category:
So please try adjusting thisBest regards,
MikeHi,
I would recommend adding the categories as a class to the single posts, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:add_filter('body_class','add_category_to_single'); function add_category_to_single($classes) { if (is_single() ) { global $post; foreach((get_the_category($post->ID)) as $category) { $classes[] = $category->category_nicename; } } return $classes; }
This will add the categories as a body class, so for example if your post belongs to the categories News, Personal, Uncategorized
the body will have these classes:
So if you wanted to use CSS to target this it would look like:#top.news.personal.uncategorized { /* your color here */ }
You can make this would for only one category if you wish, my example just happened to have three.
Best regards,
MikeHi,
Thanks for your question, but you have posted to a thread from 2019 as this is not your thread posting your admin login here will not be private and you will not see our comments in the Private Content area, so please open a new thread so we can assist.
Also let us know what host you are using as OVH is a known host to block our IP address.
If the manual import method fails, try creating a localhost WordPress install and import the demo and then use the plugin Duplicator and migrate your localhost version to your webhost, see the video on the plugin page if you have not used this plugin before, it is quite easy.Best regards,
MikeHi,
When I check only one is Veranstaltungen, the other is Lesestoff entdecken, and both of these are built into your page and not from your functions.php code, so you can change this directly in your page instead of your functions.php Please see the screenshot in the Private Content area of what I see.Best regards,
MikeHey Julie,
Thank you for the link to your site, but I can’t login I get an error: undefined please check.
1: Color sections are full width elements so the sidebar will always show below it, try using a column instead.
2: the border-bottom-right-radius doesn’t support negative values, perhaps an easier way will be to use an image for the corner like this:
this corner has a transparent background and you can use white text over it.Best regards,
MikeHi,
Thanks for the lin to your pages, but when I check the heading for each seems to be correct.
Please explain the issue further and perhaps a screenshot would help.Best regards,
MikeHi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Guenni007 is correct for #2, the “blog” option is not for category pages, if you want category/archive pages to be a grid then try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); function avia_change_category_blog_layout($layout, $context){ if($context == 'archive') $layout = 'blog-grid'; return $layout; }
You can not have a custom layout for a category / archive page with a hero image at the top like https://sii-talents.de/aktuell/
To add the hero image to the top of the category pages try this solutionBest regards,
MikeHi,
Glad that this worked, if you find that this is causing issues with galleries that you don’t want this to work on, try adding a custom class like: remove-first-image at all of the places you want it to work and then use this code instead:function remove_first_image(){ ?> <script> (function($){ $(document).ready(function(){ $( '.remove-first-image .avia-gallery-thumb a.first_thumb[data-onclick="1"]' ).remove(); }); })(jQuery); </script> <?php } add_action('wp_footer', 'remove_first_image');
If you have trouble please include an admin login in the Private Content area and a link to your page so we can be of more assistance.
Best regards,
MikeHi,
I added it for you but I don’t know what page has your magazine element, I’m pretty sure that you need to add the custom class larger-thumbnails for the script to work. Please add the custom class and check.Best regards,
MikeHi,
Please link to the pages that you want this added to, is it all pages?Best regards,
MikeHi,
Thanks for the login, I believe that you want this for the /horarios/ page, so I added this css to your Quick CSS:#top.page-id-528 #after_section_1.main_color { background-color: #000; }
Please clear your browser cache and check.
Best regards,
MikeJune 3, 2024 at 8:57 pm in reply to: Header + Menu jumps on rollover after updating to 5.7.1 #1447597Hi,
I’m not seeing this on Windows in Chrome, Firefox, & Edge, what browser are you using?Best regards,
MikeHi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
To show a different menu on one specific page, first make the menu that you wish and hover over the Delete Menu link and at the bottom of the page your browser should show the source of the link, looks for &menu=XX the XX will be a number, in my example it is 11
Next we need to know the page ID, so hover over the admin menu Edit Page in the admin toolbar, and at the bottom the browser should show the source link, look for ?post=XX again the XX will be a number, in my example it is 3792
Now we will add this code to the end of your child theme functions.php file in Appearance ▸ Editor or if you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
and ensure that it is activated, then add this code and save.add_filter( 'wp_nav_menu_args', 'ppen_nav_menu_args' ); function ppen_nav_menu_args( $args = '' ) { if($args['theme_location'] === 'avia') { if( is_page( 3792 ) ) { $args['menu'] = '11'; } return $args; } }
Now that page will have our new menu.
Best regards,
MikeJune 2, 2024 at 9:40 pm in reply to: Video fallback image causing enormous performance issues on mobile devices. #1447501Hi,
Yes, please post the code that you are using for the iframe, but also check where you are getting this code, there may be different snippets to use for different situation and there may be a snippet that doesn’t do this.
Since this snippet is loading the javascript file from outside your site, you may not be able to override this behavior, if you can’t find a different snippet to use you may need to ask the support for this snippet and tell them about this scroll function we found for them to offer you a solution.Best regards,
MikeHey byaron22,
It looks like a javascript error for the waypoints that loads your images after the page has been scrolled some. Try disabling the JetPack plugin and Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression and enable Enfold Theme Options ▸ Performance ▸ Delete old CSS and JS files and see if that helps.Best regards,
MikeHi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts