Disable auto load news in jnews wordpress theme

To disable the auto-load news feature in the JNews WordPress theme, you can try the following methods:

Method 1: Using a plugin

  1. Install and activate the "JNews Customizer" plugin.
  2. Go to the JNews Customizer settings page and click on the "News" tab.
  3. Under the "News Settings" section, toggle off the "Auto Load News" option.

Method 2: Editing the theme's functions.php file

  1. Open the functions.php file in your theme's directory (usually wp-content/themes/jnews/functions.php).
  2. Add the following code at the end of the file:
    function jnews_disable_auto_load_news() {
     remove_action( 'wp_footer', 'jnews_load_news' );
    }
    add_action( 'wp_footer', 'jnews_disable_auto_load_news' );

    This code removes the jnews_load_news action hook, which is responsible for auto-loading the news.

Method 3: Using a custom CSS

  1. Add the following CSS code to your theme's stylesheet (usually style.css):
    .jnews-news-container {
     display: none;
    }

    This code hides the news container element, effectively disabling the auto-load feature.

Method 4: Disabling the news widget

  1. Go to the WordPress admin dashboard and navigate to the "Appearance" > "Widgets" page.
  2. Find the "JNews News" widget and drag it to the "Inactive Widgets" area.
  3. Save the changes.

By using one of these methods, you should be able to disable the auto-load news feature in the JNews WordPress theme.