• Resolved nicolamailbox

    (@nicolamailbox)


    Hi there!
    I’m using the theme and I love it! I tried to create a child theme because I like to have different pages for the frontpage and the blog. In order to do that I created both the front-page.php and the home.php page.
    I also wanted to have the featured page and posts on the front page. So i also created a header.php file for my child theme. Within this file I only changed the line 36 from
    if ( is_home() ) {
    to
    if ( is_home() || is_front_page() ) {
    The thing works. However, instead of the excerpt, the frontpage shows the entire featured page. Can you help me figuring out how to solve the problem?
    By the way, I used elementor to create the featured page.

    Thank you in advance,
    nicola

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Nicola,

    Unfortunately we’re not able to provide help with custom PHP/child theme development questions for our themes.

    But we’re happy to leave the thread open in case someone else from the community is able to help you with this.

    You can also consider asking in the advanced forum at https://www.ads-software.com/support/forum/wp-advanced/, or a developers forum like https://wordpress.stackexchange.com/.

    Thread Starter nicolamailbox

    (@nicolamailbox)

    Thank you! I’ll check those forums, although I’m starting to think the problem is actually Elementor. Anyway, thank you, have a good day.

    Thread Starter nicolamailbox

    (@nicolamailbox)

    As it seems, the problem was indeed elementor. In order to solve the issue I had to change one line in the content-page-highlight.php file. The line that reads:
    $content = get_the_content();
    must be changed into
    $content = get_the_excerpt();

    Thanks for letting me know ??

    Glad you were able to sort it out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘featured page and posts on static page’ is closed to new replies.