Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • I tried that solution, but it didn’t work. Is there any chance that the plugin will get a bug fix for this instead?

    That guide begins like this: Note: For now, this functionality is only available in Hestia and in all our plugins. We plan to add this functionality to other products too in the near future.

    Luckily, that wasn’t true. It was available in Neve as well. I guess I will wait for the next update, just to be sure.

    If it doesn’t, would it be possible to roll back again?

    Any idea when the problem will be resolved? I saw that the latest release is 3.3.4. Is that a newer one where the problem is solved? I don’t remember what the last one was called, but Steven85 referred to it as 3.3.3.

    I have problems with the alignment as well. Everything went to the left. It seems there are some issues with this update.

    Thread Starter swedish62

    (@swedish62)

    I don’t see a question mark. The code is just as I copied it above.

    Thread Starter swedish62

    (@swedish62)

    Do you have any idea where I should add i? I’m a bit scared of breaking anything.

    This is what it looks like now.

    <?php
    /**
    * Neve functions.php file
    *
    * Author: Andrei Baicus <[email protected]>
    * Created on: 17/08/2018
    *
    * @package Neve
    */

    define( ‘NEVE_VERSION’, ‘2.9.5’ );
    define( ‘NEVE_INC_DIR’, trailingslashit( get_template_directory() ) . ‘inc/’ );
    define( ‘NEVE_ASSETS_URL’, trailingslashit( get_template_directory_uri() ) . ‘assets/’ );

    if ( ! defined( ‘NEVE_DEBUG’ ) ) {
    define( ‘NEVE_DEBUG’, false );
    }
    define( ‘NEVE_NEW_DYNAMIC_STYLE’, true );
    /**
    * Themeisle SDK filter.
    *
    * @param array $products products array.
    *
    * @return array
    */
    function neve_filter_sdk( $products ) {
    $products[] = get_template_directory() . ‘/style.css’;

    return $products;
    }

    add_filter( ‘themeisle_sdk_products’, ‘neve_filter_sdk’ );

    add_filter( ‘themeisle_onboarding_phprequired_text’, ‘neve_get_php_notice_text’ );

    /**
    * Get php version notice text.
    *
    * @return string
    */
    function neve_get_php_notice_text() {
    $message = sprintf(
    /* translators: %s message to upgrade PHP to the latest version */
    __( “Hey, we’ve noticed that you’re running an outdated version of PHP which is no longer supported. Make sure your site is fast and secure, by %s. Neve’s minimal requirement is PHP 5.4.0.”, ‘neve’ ),
    sprintf(
    /* translators: %s message to upgrade PHP to the latest version */
    %s‘,
    __( ‘upgrading PHP to the latest version’, ‘neve’ )
    )
    );

    return wp_kses_post( $message );
    }

    /**
    * Adds notice for PHP < 5.3.29 hosts.
    */
    function neve_php_support() {
    printf( ‘<div class=”error”><p>%1$s</p></div>’, neve_get_php_notice_text() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    }

    if ( version_compare( PHP_VERSION, ‘5.3.29’ ) <= 0 ) {
    /**
    * Add notice for PHP upgrade.
    */
    add_filter( ‘template_include’, ‘__return_null’, 99 );
    switch_theme( WP_DEFAULT_THEME );
    unset( $_GET[‘activated’] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    add_action( ‘admin_notices’, ‘neve_php_support’ );

    return;
    }

    require_once ‘globals/migrations.php’;
    require_once ‘globals/utilities.php’;
    require_once ‘globals/hooks.php’;
    require_once ‘globals/sanitize-functions.php’;
    require_once get_template_directory() . ‘/start.php’;

    require_once get_template_directory() . ‘/header-footer-grid/loader.php’;

    Thread Starter swedish62

    (@swedish62)

    I tried to add the code into “Code snippets” now to do it in a safer way. It didn’t help though.

    Thread Starter swedish62

    (@swedish62)

    So there was an update of the plugin around a week ago. It didn’t change anything for me though. So could you tell me where, exactly, I’m supposed to add the code you mentioned above?

    Thread Starter swedish62

    (@swedish62)

    Thanks for the answer. Recently I’ve played around with different themes lately for different reasons. I also checked what the index looked like but it was always the same.

    I’m a bit wary about editing the theme editor since I’m scared I might break something (or everything). You mean I should add this where exactly? There are 71 lines in it at the moment. Does it matter where I add this?

    I appreciate your answer. I’m just worried about ruining something.

    Thread Starter swedish62

    (@swedish62)

    So I made screenshots of everything that is loading on the page I use for your index. It seems there is no way to post screenshots here though. These could be disabled in the script manager

    So, anyway what loads is the following:

    Autoptimize
    Flying Pages by WP Speed Matters
    Mashshare Share Buttons
    Modern Footnotes
    WP Sticky Sidebar
    Rank Math SEO
    WP Google Search
    Gutenberg
    Plugin Detective – Troubleshooting
    WPForms Lite

    THEMES
    Twenty Seventeen

    And then some misc stuff. Each headline has more detailed info with things that could be turned off. I just thought I would ask, before starting turning things off at random.
    Some things like the sidebar are not even used on the index page so maybe I could start with that one? Any input would be appreciated.

    Thread Starter swedish62

    (@swedish62)

    Obviously, I appreciate all input on the topic.

    Thread Starter swedish62

    (@swedish62)

    That was for the main page. When I click on the index it still looks the same. I also added the code after the index page, but still the same in incognito mode.

    Thread Starter swedish62

    (@swedish62)

    You mean I should add the code above to the index URL slug?

    Thread Starter swedish62

    (@swedish62)

    Thanks for the tip, Optimizing Matters, but I think it looked the same even before I had autoptomize. In any case, I’m not sure I know how to do that. Which URL are you referring to?

Viewing 15 replies - 1 through 15 (of 20 total)