Forum Replies Created
-
AuthorPosts
-
Hi,
I see that both 3658 & 3443 are post IDs, I thought that you wanted to use the category IDs so that you could set this for each category instead of creating an array of post IDs
So I changed it like this using the category slugs instead of the IDs so it will be easier to read:if(get_post_type( $post_id ) == "post" && has_category('veranstaltungen')) {
and
if(get_post_type( $post_id ) == "post" && has_category('buecher')) {
and this seems to be working correctly, please check.Best regards,
MikeHi,
You can’t redeclare ava_after_main_title_mod(), so you need to rename it like this:
the first one:add_action('ava_after_main_title', 'ava_after_main_title_one'); function ava_after_main_title_one() { $post_id = get_the_ID(); if(get_post_type( $post_id ) == "post" || is_archive('3658')) { echo 'xxxxcontentxxxxx'; } }
then the next one:
add_action('ava_after_main_title', 'ava_after_main_title_two'); function ava_after_main_title_two() { $post_id = get_the_ID(); if(get_post_type( $post_id ) == "post" || is_archive('3443')) { echo 'xxxxcontent-2xxxxx'; } }
Best regards,
MikeHi,
Thank you for the link to your site, but your specific links for specific settings are not working, but I believe that I understand.
If you are using WP Rocket to lazyload it, I recommend disabling WP Rocket lazyload as this is causing the stal in showing the slider.
When you try to exclude it you also need to exclude the javascript for the slider, you don’t need to to the WP Rocket lazyload option because it is already set at Enfold Theme Options ▸ Performance ▸ Responsive Images And Lazy Loading ▸ Lazy Loading
Also note that the File Compression is also handled by the theme, typically double compression this this can cause errors.
Note that using the WP Rocket exclude settings can be tricky try checking their documentation here.
Try disabling WP Rocket and see if you still have the issue.Best regards,
MikeHi,
The masonry element and the portfolio element has the filter, It looks like you have found a filter plugin, this seems to be a good approach.Best regards,
MikeHi,
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,
Mike -
AuthorPosts