Hi,
Thanks for responding.
I can’t edit the one-page homepage with Elementor, there is a pop up that states ‘you must call the_content function in the current template in order for Elementor to work.
I’ve gone through the_content function from this page (https://developer.www.ads-software.com/reference/functions/the_content/)
that looks like this:
function the_content( $more_link_text = null, $strip_teaser = false ) {
$content = get_the_content( $more_link_text, $strip_teaser );
/**
* Filters the post content.
*
* @since 0.71
*
* @param string $content Content of the current post.
*/
$content = apply_filters( ‘the_content’, $content );
$content = str_replace( ‘]]>’, ‘]]>’, $content );
echo $content;
}
I’ve inserted into Himalaya theme in few locations after ‘function’ but all came out as error and I had to undo the code inserting task.
This is how it looks in the Himalaya theme..
<?php
/**
* Himalayas functions related to defining constants, adding files and WordPress core functionality.
*
* Defining some constants, loading all the required files and Adding some core functionality.
*
* @uses add_theme_support() To add support for post thumbnails and automatic feed links.
* @uses register_nav_menu() To add support for navigation menu.
* @uses set_post_thumbnail_size() To set a custom post thumbnail size.
*
* @package ThemeGrill
* @subpackage Himalayas
* @since Himalayas 1.0
*/
add_action( ‘after_setup_theme’, ‘himalayas_setup’ );
/**
* All setup functionalities.
*
* @since 1.0
*/
if ( ! function_exists( ‘himalayas_setup’ ) ) :
function himalayas_setup() {
/**
* Set the content width based on the theme’s design and stylesheet.
*/
global $content_width;
if ( ! isset( $content_width ) ) {
$content_width = 783;
}
/*
It will be great if you can guide where exactly to paste or replace ‘the_content’ code..?