Viewing 30 results - 541 through 570 (of 16,890 total)
  • Author
    Search Results
  • #1469805

    In reply to: Funky PHP Trouble

    Hi,

    While doing all this, I also realized that this site is running an older version of the Enfold Parent. (4.x)

    Have you tried removing the older version and updating the theme to version 6.0.6? Looks like you didn’t place the theme files in the correct folder.

    friends/wp-content/themes/assets/header.php
    

    The path should be:

    friends/wp-content/themes/enfold/header.php
    

    Best regards,
    Ismael

    #1469796

    In reply to: Funky PHP Trouble

    Now it shows…

    Fatal error: Uncaught Error: Call to undefined function avia_get_option() in /home/customer/www/ecpubliclibrary.info/public_html/friends/wp-content/themes/assets/header.php:6 Stack trace: #0 /home/customer/www/ecpubliclibrary.info/public_html/friends/wp-includes/template.php(810): require_once() #1 /home/customer/www/ecpubliclibrary.info/public_html/friends/wp-includes/template.php(745): load_template(‘/home/customer/…’, true, Array) #2 /home/customer/www/ecpubliclibrary.info/public_html/friends/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #3 /home/customer/www/ecpubliclibrary.info/public_html/friends/wp-content/themes/assets/index.php(10): get_header() #4 /home/customer/www/ecpubliclibrary.info/public_html/friends/wp-includes/template-loader.php(106): include(‘/home/customer/…’) #5 /home/customer/www/ecpubliclibrary.info/public_html/friends/wp-blog-header.php(19): require_once(‘/home/customer/…’) #6 /home/customer/www/ecpubliclibrary.info/public_html/friends/index.php(17): require(‘/home/customer/…’) #7 {main} thrown in /home/customer/www/ecpubliclibrary.info/public_html/friends/wp-content/themes/assets/header.php on line 6

    #1469791
    This reply has been marked as private.
    #1469748

    Auch WPML hat diese Umschaltung:
    WPML > Sprachen > Sprachen berabeiten und nutze das folgende Gebietsschema (Default locale) für Deutsch:
    de_DE-formal
    Mit diesem Gebietsschema wird WordPress automatisch die formellen, deutschen Sprachdateien für WordPress, Themes und Plugins anwenden, sollten diese vorhanden sein.

    bzw. solltest Du es für die schweizer Version benötigen: Die gibt es für formal leider nicht (auch bei WordPress nicht). – Wäre also für dich eine Herausforderung die zu liefern ;)
    für eine automatische Ersetzung des “ß” gegen “ss
    oder der „“ gegen «» gibt es bestimmt eine Lösung ;)

    f.e. in child-theme functions.php:
    sorry – Board Soft transfered my code snippet to something different : see here on pastebin: https://pastebin.com/2jDyQLGs

    copy/paste without the php start
    PS: letztere Ersetzung wird kaum vorkommen, da es das Große “ß” ist

    #1469716
    navindesigns
    Participant

    I updated my theme to the latest version and now I cannot login to the backend, I am getting the following error

    Error Details
    =============
    An error of type E_ERROR was caused in line 1017 of the file /home/customer/www/yatesco.net/public_html/wp-content/plugins/wordpress-seo-premium/inc/class-wpseo-meta.php. Error message: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, bool given in /home/customer/www/yatesco.net/public_html/wp-content/plugins/wordpress-seo-premium/inc/class-wpseo-meta.php:1017
    Stack trace:
    #0 /home/customer/www/yatesco.net/public_html/wp-content/plugins/wordpress-seo-premium/inc/class-wpseo-meta.php(1017): array_map(Object(Closure), false)
    #1 /home/customer/www/yatesco.net/public_html/wp-content/plugins/wordpress-seo-premium/admin/formatter/class-post-metabox-formatter.php(172): WPSEO_Meta::keyword_usage(‘Hycoa’, 734)
    #2 /home/customer/www/yatesco.net/public_html/wp-content/plugins/wordpress-seo-premium/admin/formatter/class-post-metabox-formatter.php(132): WPSEO_Post_Metabox_Formatter->get_keyword_usage_for_current_post(‘Hycoa’)
    #3 /home/customer/www/yatesco.net/public_html/wp-content/plugins/wordpress-seo-premium/admin/formatter/class-post-metabox-formatter.php(55): WPSEO_Post_Metabox_Formatter->get_focus_keyword_usage()
    #4 /home/customer/www/yatesco.net/public_html/wp-content/plugins/wordpress-seo-premium/admin/formatter/class-metabox-formatter.php(42): WPSEO_Post_Metabox_Formatter->get_values()
    #5 /home/customer/www/yatesco.net/public_html/wp-content/plugins/wordpress-seo-premium/admin/metabox/class-metabox.php(273): WPSEO_Metabox_Formatter->get_values()
    #6 /home/customer/www/yatesco.net/public_html/wp-content/plugins/wordpress-seo-premium/admin/metabox/class-metabox.php(879): WPSEO_Metabox->get_metabox_script_data()
    #7 /home/customer/www/yatesco.net/public_html/wp-includes/class-wp-hook.php(324): WPSEO_Metabox->enqueue(‘post.php’)
    #8 /home/customer/www/yatesco.net/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #9 /home/customer/www/yatesco.net/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #10 /home/customer/www/yatesco.net/public_html/wp-admin/admin-header.php(118): do_action(‘admin_enqueue_s…’, ‘post.php’)
    #11 /home/customer/www/yatesco.net/public_html/wp-admin/edit-form-advanced.php(425): require_once(‘/home/customer/…’)
    #12 /home/customer/www/yatesco.net/public_html/wp-admin/post.php(206): require(‘/home/customer/…’)
    #13 {main}
    thrown

    my site is https://yatesco.net/

    I had to deactivate the plugin temporary

    #1469674
    This reply has been marked as private.
    #1469638
    zimbo
    Participant

    If I load this page, it displays properly on a PC and via Dev Tools. If however I view the page on an Android phone, the thumbnail of the Hotel Nevada near the bottom of the page is not shown – https://imgur.com/l350MY4.

    The img code is:
    <img loading="lazy" decoding="async" aria-describedby="caption-attachment-7644" class="size-square wp-image-7644" src="https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-180x101.jpg" alt="Hotel Nevada at night" width="180" height="101" srcset="https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-180x101.jpg 180w, https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-300x169.jpg 300w, https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-80x45.jpg 80w, https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-495x279.jpg 495w, https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-150x84.jpg 150w, https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada.jpg 700w" sizes="(max-width: 180px) 100vw, 180px">

    The image is inserted on the page as the 180×101 px size thumbnail, with a lightbox link to the full size media file. I use the Simple Image Sizes plugin and also remove multiple Enfold images from being created in functions.php

    However when the original image was first uploaded a Portfolio size image was created of 495×279 px. As you can see, this is referenced in the img code. Since then, to save space I have deleted all unnecessary thumbnails. Thus Hotel-Nevada-495×279.jpg no longer exists in Uploads.

    I then edited the page, deleting the image, saving and updating. I did this to remove the reference to the 495px image from srcset. I then added the photo back onto the page and updated.

    The code on the page, despite me deleting the photo and then re-adding it, is still referencing the 495 px image, per the code block above (and you can verify this on the live page).

    The reason on Android no image is shown is because there is no 495 px file. But I know Enfold is trying to load this file because I created a file called Hotel-Nevada-495×279.jpg from the 180 px size image then uploaded it, refreshed the page on my Android phone – and the ‘false’ thumbnail was then seen. I’ve since deleted this.

    1. Primary issue – why is Enfold even trying to load a 495 px wide image in responsive mode and not the 180 px image specified on the page?

    2. After deleting the image from the page then re-adding it, why is Enfold still adding a reference to srcset to an image size that does not exist?

    3. I have regenerated the thumbnails for the image and a 495 px size is not being created – the image stats then says “5 images reduced by 114.3 KB (66.4%)” yet View Stats lists 6 thumbnails, including a Portfolio at 495 px wide, even though the file does not exist. The image’s Attachment Metadata has a reference to ‘portfolio’ – is this the problem and if so why does regenerating the thumbnails not remove this given the Portfolio size is no longer allowed?

    #1469487

    Hi,
    You have linked to an extracted theme zip, if you downloaded the installable WP version from Theme Forest it would be a single zip file, perhaps you clicked it and your Mac extracted it, I’m not sure.
    To try to help I tried to upload my working zip file and got incompatible archive error, so this makes me believe that your server doesn’t have the PHP ZipArchive Extension enabled, you must enable this on your server.
    I see that you just updated your PHP to 8.1 from probably 7.4, often web hosts have not enabled this extension by default for the PHP 8+ where it was always enabled on 7.4
    If you are using a cPanel webhost this is what you would look for:
    Enable PHP ZipArchive Extension - PHP Extensions - zip
    otherwise you will need to ask your webhost to check and enable.
    The easiest way to fix this right now is to upload your extracted theme files that you linked to via FTP or the cPanel file manager using the documentation that Rikard linked to, scroll down to: Re-install or Update using FTP for more info.

    Best regards,
    Mike

    #1469448

    Hi,
    I removed the previse solution and edited your archive.php & tag.php and replaced this on line 63:

    'custom_query'=> array('post__in'	=> $post_ids,'post_type'	=> get_post_types())

    with this:

    'custom_query' => array( 'post__in'=>$post_ids),'contents' => 'excerpt_read_more',);

    for this result:
    Screen Shot 2024 10 19 at 9.55.24 AM
    if you don’t like the button, change your blog style at Enfold Theme Options ▸ Blog Layout ▸ Blog Styling
    Screen Shot 2024 10 19 at 9.58.31 AM
    For your tag.php I replaced line 117:

    'custom_query'	=> array('post__in'	=> $post_ids,'post_type'	=> $key));

    with:

    'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=> $key ),'contents' => 'excerpt_read_more',);

    Screen Shot 2024 10 19 at 10.10.38 AM
    Please note that since you are not using a Child Theme these customizations will be lost when you update next. So it is best if you copy these files to your child theme after you install it.

    Best regards,
    Mike

    Hey wema7300,

    Thank you for the inquiry.

    The editor should not automatically switch to the Advanced Layout Builder (ALB) unless toggled. Have you tried disabling the ALB for posts? You can add this code to the functions.php file:

    function avf_alb_supported_post_types_mod($alb_post_types)
    {
    	unset($alb_post_types[0]);
    	return $alb_post_types;
    }
    add_filter('avf_alb_supported_post_types', 'avf_alb_supported_post_types_mod', 10, 1);
    

    Best regards,
    Ismael

    CharlieTh
    Participant

    I tried to use accordion in an admin notice, so user would get information on what to do, but wouldn’t have to see ALL information in one big gulp.
    This was a “tester” to see if would work in admin. It didn’t. It just put the four lines at the point in the page where I’d hoped for an accordion.

    I just see…but they’re just text, not clickable accordion items.

    Toggle 1

    Toggle Content for first tab goes here

    Toggle 2

    Toggle Content for second tab goes here

    Here is my code —
    As you can see in my comments to code, I realize I need to add that accordion code.
    Might I be able to use the avf_shortcode_no_header_request? If so, how?

    //In order for this to work, I will need to somehow load the code for accordion.
    //Apparently this means, either load ALL elements when don’t need all…OR
    //perhaps something with https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/Request%20Handling/avf_shortcode_no_header_request.php
    //and avf_shortcode_no_header_request.php

    function sample_admin_notice__success() {

    echo ‘<div class=”somethinghere”>’;
    echo do_shortcode(“[av_toggle_container initial='0' mode='accordion' sort='' custom_class='' av_uid='av-w8wcwc']
    [av_toggle title='Toggle 1' tags='' av_uid='av-37adsc']
    Toggle Content for first tab goes here
    [/av_toggle]
    [av_toggle title='Toggle 2' tags='' av_uid='av-vu501g']
    Toggle Content for second tab goes here
    [/av_toggle]
    [/av_toggle_container]“);
    echo ‘</div>’;
    }
    add_action( ‘admin_notices’, ‘sample_admin_notice__success’ );

    Can this be done with avf_shortcode_no_header_request or another method?

    #1469353

    Hi,

    Thank you for the info.

    Did you add any custom scripts or embed any code in this page? Please try to set the builder to debug mode so that we can check the builder shortcodes:

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#debug-mode

    We get an error when we open the page:

    load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-hooks&ver=e827396fc34e6c62a26ca19ef49468b3:2 Uncaught TypeError: a(...).tipTip is not a function
        at Object.initTipTip (erp.min.js?ver=1.13.3:1:4772)
        at Object.initialize (erp.min.js?ver=1.13.3:1:4721)

    This error is from a plugin with the slug “erp”. Are you using the WP ERP plugin?

    Best regards,
    Ismael

    …also tried the following wp-config.php configuration:

    6-
    /** Database Charset to use in creating database tables. */
    define( ‘DB_CHARSET’, ‘utf8mb4’ );

    /** The Database Collate type. Don’t change this if in doubt. */
    define( ‘DB_COLLATE’, ‘utf8mb4_unicode_520_ci’ );

    7-
    /** Database Charset to use in creating database tables. */
    define( ‘DB_CHARSET’, ‘utf8mb4’ );

    /** The Database Collate type. Don’t change this if in doubt. */
    define( ‘DB_COLLATE’, ‘utf8mb4_unicode_ci’ );

    8-
    /** Database Charset to use in creating database tables. */
    define( ‘DB_CHARSET’, ‘utf8’ );

    /** The Database Collate type. Don’t change this if in doubt. */
    define( ‘DB_COLLATE’, ‘utf8mb4_unicode_ci’ );

    9-
    /** Database Charset to use in creating database tables. */
    define( ‘DB_CHARSET’, ‘utf8mb4’ );

    /** The Database Collate type. Don’t change this if in doubt. */
    define( ‘DB_COLLATE’, ‘utf8mb4_general_ci’ );

    #1469261

    Hi,
    You have this PHP code in your Quick CSS breaking the css below it:
    Enfold Support 6505
    I moved the css to the top and now it works:
    Enfold Support 6507
    but you should still remove the PHP code and add it to your WPcode plugin as a PHP snippet, unless you already did.

    Best regards,
    Mike

    #1469243

    In reply to: Funky PHP Trouble

    I think so?

    I’m in recovery mode and on the themes page under “Broken Themes” it says “This theme failed to load properly and was paused within the admin backend.” If I click Resume, I see an error message: “Theme could not be resumed because it triggered a fatal error.”

    I pasted the error log into the Private Content window.

    The site still does not load when using the parent Enfold theme and anything higher than PHP 7.4.33

    Thanks for your help!

    #1469183

    Topic: Funky PHP Trouble

    in forum Enfold
    WiscoLibrary
    Participant

    Hello!

    We have multiple sites using Enfold child themes. All sites are on the latest version of the theme and the latest WordPress. We have a main site/installation and the other sites are installed in subfolders — so all on the same domain and the same PHP.

    A few days ago, one of smaller the sites (one in a subfolder) went down because the theme will not load. I worked with my webhost’s tech support and there’s no malware or anything strange. They suggested downgrading the PHP from 8.2.24 to 7.4.33. I did that and the smaller site came back up. But our main site went down, saying it needs PHP 8.0. (Meanwhile the other sites using the same theme version, WordPress version, and PHP all stayed up.)

    So I reset the PHP to 8.2. Here’s where I’m at …

    UP: https://www.ecpubliclibrary.info/ (needs PHP 8 or higher)
    DOWN: https://www.ecpubliclibrary.info/friends/ (needs PHP 7.4)
    UP: https://www.ecpubliclibrary.info/teens/ (works on all PHP)
    UP: https://www.ecpubliclibrary.info/kids/ (works on all PHP)

    Any idea what’s happening and how to fix it?

    – Mike

    Rikard, I know what it is. It’s a permission (and possibly a folder ownership) issue.

    When I set manually 777 permission to wp-content/uploads/*folders then I don’t have errors any more.
    As soon as I come back to 755, errors come back too.

    I have 2 thoughts and no anwsers
    1) Using FileZilla to upgrade enfold version, I don’t understand why WP is not able to allow permission automatically during the process of swapping folder-V.5.6.12 into folder-V.6.0.5 !
    2) On top of that, it seems I have different owners inside my wp-content/upload folder and sub-folders. I think (but I’m not sure) this is where comes from the problem and I have no clue how to fix that.

    ownership in upload folder

    I hope it gives you ideas to help me to get out of this blocking situation.

    PS. I’m aware about my late php version too, I need to take care about that some day. Thx for the reminder.

    • This reply was modified 1 year, 5 months ago by rvga.
    • This reply was modified 1 year, 5 months ago by rvga.
    • This reply was modified 1 year, 5 months ago by rvga.
    • This reply was modified 1 year, 5 months ago by rvga.

    Hi Rikard,
    I’m glad to see you study my case, thanks for that.

    I have just switched between the 5.6.12 version and the 6.0.5 one and here are the 3 errors I had:
    (hope it helps)

    Warning: fopen(/volume4/web/cserp/wp-content/uploads/dynamic_avia/avia-merged-styles-18ecd38336cb985ece6556faf31d6e7a—670a5d4bd6c89.css):
    failed to open stream: Permission denied in /volume4/web/cserp/wp-content/themes/enfold/framework/php/function-set-avia-backend.php on line 984 Call Stack: 0.0001 368624
    1. {main}() /volume4/web/cserp/index.php:0 0.0001 368904
    2. require(‘/volume4/web/cserp/wp-blog-header.php’) /volume4/web/cserp/index.php:17 3.4384 57892464
    3. require_once(‘/volume4/web/cserp/wp-includes/template-loader.php’) /volume4/web/cserp/wp-blog-header.php:19 3.5285 60283368
    4. include(‘/volume4/web/cserp/wp-content/themes/enfold/template-builder.php’) /volume4/web/cserp/wp-includes/template-loader.php:106 3.5286 60283368
    5. get_header() /volume4/web/cserp/wp-content/themes/enfold/template-builder.php:15 3.5379 60349904
    6. locate_template() /volume4/web/cserp/wp-includes/general-template.php:48 3.5380 60349984
    7. load_template() /volume4/web/cserp/wp-includes/template.php:745 3.5475 60378328
    8. require_once(‘/volume4/web/cserp/wp-content/themes/enfold/header.php’) /volume4/web/cserp/wp-includes/template.php:810 3.5925 60385800
    9. wp_head() /volume4/web/cserp/wp-content/themes/enfold/header.php:228 3.5925 60385800
    10. do_action() /volume4/web/cserp/wp-includes/general-template.php:3065 3.5925 60386176
    11. WP_Hook->do_action() /volume4/web/cserp/wp-includes/plugin.php:517 3.5925 60386176
    12. WP_Hook->apply_filters() /volume4/web/cserp/wp-includes/class-wp-hook.php:348 3.6548 60390136
    13. wp_enqueue_scripts() /volume4/web/cserp/wp-includes/class-wp-hook.php:324 3.6548 60390136
    14. do_action() /volume4/web/cserp/wp-includes/script-loader.php:2263 3.6548 60390512
    15. WP_Hook->do_action() /volume4/web/cserp/wp-includes/plugin.php:517 3.6548 60390512
    16. WP_Hook->apply_filters() /volume4/web/cserp/wp-includes/class-wp-hook.php:348 3.7716 60756224
    17. aviaAssetManager->try_minifying_scripts() /volume4/web/cserp/wp-includes/class-wp-hook.php:324 3.7716 60756224
    18. aviaAssetManager->merge() /volume4/web/cserp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:243 3.7812 61881584
    19. aviaAssetManager->generate_file() /volume4/web/cserp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:358 3.7820 62667408
    20. avia_backend_create_file() /volume4/web/cserp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:810 3.7820 62667408
    21. fopen() /volume4/web/cserp/wp-content/themes/enfold/framework/php/function-set-avia-backend.php:984

    Warning: fopen(/volume4/web/cserp/wp-content/uploads/dynamic_avia/avia-head-scripts-388e3ec585846faac3926658720b7d69—670a5d4bd887a.js):
    failed to open stream: Permission denied in /volume4/web/cserp/wp-content/themes/enfold/framework/php/function-set-avia-backend.php on line 984 Call Stack: 0.0001 368624
    1. {main}() /volume4/web/cserp/index.php:0 0.0001 368904
    2. require(‘/volume4/web/cserp/wp-blog-header.php’) /volume4/web/cserp/index.php:17 3.4384 57892464
    3. require_once(‘/volume4/web/cserp/wp-includes/template-loader.php’) /volume4/web/cserp/wp-blog-header.php:19 3.5285 60283368
    4. include(‘/volume4/web/cserp/wp-content/themes/enfold/template-builder.php’) /volume4/web/cserp/wp-includes/template-loader.php:106 3.5286 60283368
    5. get_header() /volume4/web/cserp/wp-content/themes/enfold/template-builder.php:15 3.5379 60349904
    6. locate_template() /volume4/web/cserp/wp-includes/general-template.php:48 3.5380 60349984
    7. load_template() /volume4/web/cserp/wp-includes/template.php:745 3.5475 60378328
    8. require_once(‘/volume4/web/cserp/wp-content/themes/enfold/header.php’) /volume4/web/cserp/wp-includes/template.php:810 3.5925 60385800
    9. wp_head() /volume4/web/cserp/wp-content/themes/enfold/header.php:228 3.5925 60385800
    10. do_action() /volume4/web/cserp/wp-includes/general-template.php:3065 3.5925 60386176
    11. WP_Hook->do_action() /volume4/web/cserp/wp-includes/plugin.php:517 3.5925 60386176
    12. WP_Hook->apply_filters() /volume4/web/cserp/wp-includes/class-wp-hook.php:348 3.6548 60390136
    13. wp_enqueue_scripts() /volume4/web/cserp/wp-includes/class-wp-hook.php:324 3.6548 60390136
    14. do_action() /volume4/web/cserp/wp-includes/script-loader.php:2263 3.6548 60390512
    15. WP_Hook->do_action() /volume4/web/cserp/wp-includes/plugin.php:517 3.6548 60390512
    16. WP_Hook->apply_filters() /volume4/web/cserp/wp-includes/class-wp-hook.php:348 3.7716 60756224
    17. aviaAssetManager->try_minifying_scripts() /volume4/web/cserp/wp-includes/class-wp-hook.php:324 3.7835 61854080
    18. aviaAssetManager->merge() /volume4/web/cserp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:246 3.7883 61905560
    19. aviaAssetManager->generate_file() /volume4/web/cserp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:358 3.7887 62218048
    20. avia_backend_create_file() /volume4/web/cserp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:810 3.7887 62218048
    21. fopen() /volume4/web/cserp/wp-content/themes/enfold/framework/php/function-set-avia-backend.php:984

    Warning: fopen(/volume4/web/cserp/wp-content/uploads/dynamic_avia/avia_posts_css/post-2.css):
    failed to open stream: Permission denied in /volume4/web/cserp/wp-content/themes/enfold/framework/php/function-set-avia-backend.php on line 984 Call Stack: 0.0001 368624
    1. {main}() /volume4/web/cserp/index.php:0 0.0001 368904
    2. require(‘/volume4/web/cserp/wp-blog-header.php’) /volume4/web/cserp/index.php:17 3.4384 57892464
    3. require_once(‘/volume4/web/cserp/wp-includes/template-loader.php’) /volume4/web/cserp/wp-blog-header.php:19 3.5285 60283368
    4. include(‘/volume4/web/cserp/wp-content/themes/enfold/template-builder.php’) /volume4/web/cserp/wp-includes/template-loader.php:106 3.5286 60283368
    5. get_header() /volume4/web/cserp/wp-content/themes/enfold/template-builder.php:15 3.5379 60349904
    6. locate_template() /volume4/web/cserp/wp-includes/general-template.php:48 3.5380 60349984
    7. load_template() /volume4/web/cserp/wp-includes/template.php:745 3.5475 60378328
    8. require_once(‘/volume4/web/cserp/wp-content/themes/enfold/header.php’) /volume4/web/cserp/wp-includes/template.php:810 3.5925 60385800
    9. wp_head() /volume4/web/cserp/wp-content/themes/enfold/header.php:228 3.5925 60385800
    10. do_action() /volume4/web/cserp/wp-includes/general-template.php:3065 3.5925 60386176
    11. WP_Hook->do_action() /volume4/web/cserp/wp-includes/plugin.php:517 3.5925 60386176
    12. WP_Hook->apply_filters() /volume4/web/cserp/wp-includes/class-wp-hook.php:348 3.6548 60390136
    13. wp_enqueue_scripts() /volume4/web/cserp/wp-includes/class-wp-hook.php:324 3.6548 60390136
    14. do_action() /volume4/web/cserp/wp-includes/script-loader.php:2263 3.6548 60390512
    15. WP_Hook->do_action() /volume4/web/cserp/wp-includes/plugin.php:517 3.6548 60390512
    16. WP_Hook->apply_filters() /volume4/web/cserp/wp-includes/class-wp-hook.php:348 3.7901 61904376
    17. aviaPostCssManagement->handler_enqueue_post_styles() /volume4/web/cserp/wp-includes/class-wp-hook.php:324 3.7902 61904376
    18. aviaPostCssManagement->check_create_file() /volume4/web/cserp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php:205 3.8737 61743384
    19. aviaPostCssManagement->create_file() /volume4/web/cserp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php:275 3.8743 61751896
    20. avia_backend_create_file() /volume4/web/cserp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php:1064 3.8743 61751896
    21. fopen() /volume4/web/cserp/wp-content/themes/enfold/framework/php/function-set-avia-backend.php:984

    Surprisingly, these erros are not listed in my PHP error log window maintained by the Error Log Monitor WP plugin?

    #1468896

    Hi,

    Thank you for the update.

    Have you tried adding this code in the functions.php file as @Guenni007 suggested in the previous thread?

    function admin_head_mod() {
    echo '<style type="text/css">
    	#postbox-container-2 { clear: left; }
    	.index-php #postbox-container-2 { clear: none; }
    </style>';
    }
    add_action('admin_head', 'admin_head_mod');
    

    Thread; https://kriesi.at/support/topic/enfold-back-end-not-working-in-safari-on-sequoia/#post-1468431

    Best regards,
    Ismael

    #1468758

    Hi,

    Thank you for the info.

    It seems the string or text is missing from the language files (es_ES.po file, line 29157). As a temporary solution, you can install the Loco Translate plugin and manually add the translations.

    Line 29157 of the es_ES.po file:

    #: framework/php/class-form-generator.php:509
    msgid ""
    "This contact form is deactivated because you refused to accept Google "
    "reCaptcha service which is necessary to validate any messages sent by the "
    "form."
    msgstr ""
    

    You can also use the filter that we provided above to directly translate the text.

    Best regards,
    Ismael

    #1468710

    try

    <?php echo do_shortcode( '[contact-form-7 id="1234" title="Contact form 1"]' ); ?>
    

    and what template do you use? single-portfolio.php

    maybe to get it on both ( classic styled portfolios and advanced layout builded portfolios) it will be better to hook into footer.php for only portfolios.

    try instead in your child-theme functions.php:

    add_action('ava_before_footer', function() {
      if (is_singular( 'portfolio' )){
        echo '<div class="container">';
        echo do_shortcode( '[contact-form-7 id="1234" title="Contact form 1"]' );
        echo '</div>';
      }
    });
    #1468709
    Mike61
    Participant

    Hello team, I would like to integrate a form on all portfolio pages as the last element in the content (not via hook after the content – before the footer). I tried this with the recommended shortcut from Contact Form 7 and put it directly into the corresponding template of Enfold:
    <?php echo apply_shortcodes( ‘[contact-form-7 id=“1234” title=“Contact form 1”]’ ); ?>
    Unfortunately, the shortcode is not executed, why is that?

    Many thanks and best regards

    Hi,

    Thank you for the update.

    It might be an issue with the embedded code in the Code Block element.

    
    <div class="sked-portal-container" style="">
      <iframe id="sked-portal" sandbox="allow-top-navigation allow-scripts allow-forms allow-same-origin" style="border: none; height: 75vh; width: 100vw; " src="https://portal.sked.life/new-patient?key=sfdsfdsf">
      </iframe>
    
    <script>
        (function(){
          try {
            const redirectUrl = "https://blossomfamilychiropractic.com/schedule-appointment/appointment-thank-you-orlando/";
            const messageHandler = function(event) {
              if(event && event.data) {
                const skedMessage = JSON.parse(event.data);
                if(skedMessage && skedMessage.actionType === 'confirm') {
                  window.location.href = redirectUrl;
                }
              }
            };
    
            window.addEventListener('message', messageHandler);
          } catch(err){};
        })();
        </script></div>
    

    Instead of embedding this code directly to the page, try creating a custom shortcode for it. Example:

    function sked_portal_shortcode() {
        ob_start();
        ?>
    <div class="sked-portal-container" style="">
            <iframe id="sked-portal" sandbox="allow-top-navigation allow-scripts allow-forms allow-same-origin" style="border: none; height: 75vh; width: 100vw;" src="https://portal.sked.life/new-patient?key=sfsfsdfsfssfds"></iframe>
            <script>
                (function(){
                    try {
                        const redirectUrl = "https://blossomfamilychiropractic.com/schedule-appointment/appointment-thank-you-orlando/";
                        const messageHandler = function(event) {
                            if(event && event.data) {
                                const skedMessage = JSON.parse(event.data);
                                if(skedMessage && skedMessage.actionType === 'confirm') {
                                    window.location.href = redirectUrl;
                                }
                            }
                        };
    
                        window.addEventListener('message', messageHandler);
                    } catch(err) {};
                })();
            </script></div>
    <?php
        return ob_get_clean(); 
    }
    
    add_shortcode('sked_portal', 'sked_portal_shortcode');
    

    You can use this shortcode in Code Blocke element:

    [sked_portal]
    

    Please make sure to update the key value in this URL:

    https://portal.sked.life/new-patient?key=sfsfsdfsfssfds
    

    Best regards,
    Ismael

    #1468461

    because i do not see private content – i guess your page is like this:
    https://kriesi.at/themes/enfold-2017/blog/blog-default/ – and you like to have the link for the whole (Image, heading, excerpt and read-more)
    if you like to have it more specific – use custom classes or page-id’s

    this snippet transfers the first link that could be found in the articel to the slide-entry:

    function transfer_first_link_as_link_to_article(){
    ?>
    <script type="text/javascript">
    window.addEventListener("DOMContentLoaded", function () { 
      (function($) {
          $('.slide-entry').each( function() {
            var LinkSection = $(this).find('a:first').attr('href');
            var LinkTarget = $(this).find('a:first').attr('target');
            if (typeof LinkSection !== "undefined"){
              $(this).on("click", function(){
                if (LinkTarget === "_blank"){
                  window.open(LinkSection, '_blank'); 
                } else {
                  window.location.href = LinkSection;
                };
              });
              $(this).css('cursor','pointer');
            };
          });
      })(jQuery);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'transfer_first_link_as_link_to_article');
    #1468302

    Topic: Mega menu (2)

    in forum Enfold
    Mariarita
    Participant

    Good evening,

    I am still experiencing a series of problems with the mega menu, even though I have removed many of the items in it.
    The display of the submenu is not the best if I use the MEGA MENU option. Option that I don’t want to remove. Unfortunately I can’t even edit the php file as the entry is not present in my wp dashboard.
    I will explain in detail the problems I encounter, mainly concerning the division into columns and the fact that the space between the columns of the submenu are not equal to each other.
    Specifically, in the PSORIASI item I had to use the “this column starts a new row” option to overcome the problem, but I don’t like this on a visual level *see photo 1.

    Another problem is found in the NEWS item, in the submenu yes you may notice how the GIORNATA MONDIALE DELLA PSORIASI item goes too far towards the last item of the submenu *see photo 2.

    Finally, a problem that I have had since I started working on this website, the CERCA IL CENTRO item, inside it there are the entries of all the regions of Italy, in this case not only is the space between the various columns not the same, but the last two entries of the submenu are positioned too far apart from each other, under the first and fourth columns *see photo 3.

    Furthermore, I would like the menu item SEARCH FOR THE CENTER to be highlighted. If it were possible to change the background color only for that portion of the menu with CSS or, if it were possible to change the color of the text, but I repeat ONLY FOR THAT MENU ITEM https://prnt.sc/QdkYeyVHaM35

    I hope you can help me solve these problems.
    I also attach a series of extra photos.
    1. https://prnt.sc/Wa2Oo3u3px1N
    2. https://prnt.sc/Jwc3BIsA1J6M
    3. https://prnt.sc/0cjYJVwKBmQT
    https://prnt.sc/KhK3jaU6s-Oi / https://prnt.sc/5NROCK4CqRP0 / https://prnt.sc/be0td4-9rmXe / https://prnt.sc/DUD97y6fMduK / https://prnt.sc/JrVc7U75v0rA

    Kind regards,
    Mariarita

    #1468104

    Solution: Reinstate the default woo dropdowns – Applies to all Enfold sites:

    The default woo filters are dequeued in enfold > config-woocommerce > config.php and config-365.php

    We can requeue them and disable the Enfold filters by adding the following to functions.php in the child theme:

    // Removes Enfolds sort by dropdowns
    function avia_woocommerce_frontend_search_params()
    {
       return;
    }
    
    // Re-adds the default sortby dropdown
    add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 20 );

    Styling fixes
    Add the following css:

    @media only screen and (max-width: 767px) {
        .responsive #top .woocommerce-ordering {
            position: relative;
            float: left;
            clear: both;
            margin: 0;
            padding-bottom: 0px;
            padding-top: 15px;
            top: 0px;
            margin-top:60px;
        }
    }
    
    @media only screen and (min-width: 768px) {
        .responsive #top .woocommerce-ordering {
            position: relative;
            float: left;
            clear: both;
            margin: 0;
            padding-bottom: 15px;
            padding-top: 15px;
            top: 0px;
            margin-top:0px;
        }
    }
    
    #top.woocommerce-page .woocommerce-ordering select {
    width: 100%;
    font-size:16px;
    padding: 8px;
    line-height: 1.2em;
    }
    • This reply was modified 1 year, 6 months ago by thinkjarvis.
    #1468076

    In reply to: Link to a Text

    Hi,

    We still haven’t figured out why the click event for the read more button can’t be triggered automatically.

    there are changes in your setting ( names ) and these selectors are ID’s


    @Guenni007
    : We’ve already updated the attributes of the elements and edited the code in the functions.php, but the click trigger is still not working as expected. Thanks for checking.

    Best regards,
    Ismael

    ok – if this is ok for you – see: https://webers-testseite.de/jak-contact/
    ( due to maintainance mode of my hoster – page might be not seen today )

    snippet for child-theme functions.php and the contakt form 7 Form code is on that page.

    snippet:
    (The script is necessary because CF7 does not provide a way to select whether an input field is in focus or filled.)

    function class_on_active_form_fields(){
    ?>
    <script>
    window.addEventListener("DOMContentLoaded", function () { 
      (function($) {     
        $('.wpcf7-form-control').each(function() {
          $(this).on('focus', function() {
            $(this).parent().addClass('active');
          });
          $(this).on('blur', function() {
            if ($(this).val().length == 0) {
              $(this).parent().removeClass('active');
            }
          });
        });
      })(jQuery);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'class_on_active_form_fields');

    the css ( with your wrapper class ):

    .form-wrapper {
      position : relative !important;
    }
    
    .form-wrapper .placeholder {
      position: absolute;
      top: 5px;
      left: 5px;
      opacity: 0.5;
      transition: opacity 1s ease;
      pointer-events: none;
    }
    
    .form-wrapper .asterisk {
      color: red !important;
    }
    
    .wpcf7-form-control-wrap.active + .placeholder { 
      opacity: 0 !important;
    }

    the form in this setup:

    <div class="form-wrapper">[text* first-name placeholder ""]<span class="placeholder">First name <span class="asterisk">*</span></span></div>
    <div class="form-wrapper">[text* last-name placeholder ""]<span class="placeholder">Last name <span class="asterisk">*</span></span></div>
    <div class="form-wrapper">[email* your-email placeholder " "]<span class="placeholder">E-Mail <span class="asterisk">*</span></span></div>
    <div class="form-wrapper">[textarea* textarea-716 placeholder " "]<span class="placeholder">Placeholder <span class="asterisk">*</span></span></div>
    
    <div class="form-wrapper">[submit "Send"]</div>
    #1467835

    I would have to look up what has changed since then (almost 5 years ago). Unfortunately, this test page of mine is so bloated with tests for other participants in this forum that some code snippets may be interfering with others. The functions.php of the child themes is already 3750 lines long.

    #1467806
    JaimBateman
    Participant

    Hi,
    I have a weird issue on a modification that I implemented on a website. I wanted to include the captions in the lightboxes for a masonry gallery ; I found a thread here that gave a solution that works :

    But ! It only works if I empty the navigator’s cache and only the first time I visit the page. If I reload the page, or go on another page and then come back, the modification doesn’t work anymore. Any idea why ?

    Here is the slitghly adapted code, lifted from Guenni007 :

    function popup_masonry_gallery() { 
    if(is_singular('regard-associe')) {
    ?>
    <script type="text/javascript">
    (function($){
    $(window).load(function(){  
        $('a.av-masonry-entry.lightbox-added').magnificPopup({
        type: 'image',
    		image: {
            titleSrc: false,
            markup: '<div class="mfp-figure">'+
                      '<div class="mfp-close"></div>'+
                      '<div class="mfp-img"></div>'+
                      '<div class="mfp-bottom-bar">'+
                        '<div class="mfp-title"></div>'+
                        '<div class="mfp-counter"></div>'+
                      '</div>'+
                    '</div>',
        },
        mainClass:          'avia-popup mfp-zoom-in mfp-image-loaded',
        closeOnContentClick:  false,
        midClick:         true,
    
        gallery: {
          enabled:      true
        },
    
        callbacks: {
    		markupParse: function (template, values, item) {
    			values.title = '<span class="jmmfp-title"><strong>' + item.el.find('img').attr('title') + '</strong></span><br>' + item.el.closest('.av-masonry-entry').find('.av-masonry-entry-content').text();
    		},
    
        },
      }); 
      // close the iframe window
      $(document).on('click', '.popup-modal-dismiss', function (e) { 
        $.magnificPopup.close();
      });
    });
    })(jQuery);
    </script>
    <?php }}
    add_action('wp_footer', 'popup_masonry_gallery');

    Any idea why that is ?

    Thanks !

Viewing 30 results - 541 through 570 (of 16,890 total)