Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1106815

    Hi,

    first: I am not a coder … but could you give me some advice for this question:

    I would like to have different templates for SINGLE POSTS.

    – I do not use ALB for posts, but the Classic Editor.
    – I would like to modify the loop-index.php to my desire and use then this modification as a new template for single posts.

    I have read this: https://developer.wordpress.org/themes/basics/template-hierarchy/
    but I don’t know how to manage creating a post’s template within ENFOLD.

    Thanks for your help in advance.

    #1107134

    Hey Gitte,

    Here are some advice I could give (prerequisite is using a child theme).
    1. Create a file and call it single-post.php.
    2. Copy all content of single.php in the enfold theme to your single-post.php file.
    3. Find this line of code:

    get_template_part( 'includes/loop', 'index' );

    replace it with:

    get_template_part( 'includes/myloop', 'index' );

    4. Create a folder called includes and inside it create a file called myloop-index.php.
    5. Copy all content loop-index.php of the enfold theme, then tweak it as you needed.

    Hope this helps.

    Best regards,
    Nikko

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.