Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1468127

    Hi team, thanks in advance.

    I just copied single.php from ENFOLD folder to ENFOLD-CHILD folder as phb-tbwa-single-post.php and in the top of php i write:

    <?php
    /*
    	 Template Name: Single Post
       Template Post Type: post
    */

    Is the same file as single.php but with this extra name to appear in the selected list of templates in POST ENTRY.

    The problem is that the content is different when I use one of both.

    Here is the video file with the problem
    https://drive.google.com/file/d/13-X3gCsNpuK2bEM2H8dhmdbtOb6B1kyp/view?usp=sharing

    Thanks.

    #1468140

    Hey digitalt20,

    Thank you for the inquiry.

    It looks different because the Advanced Layout Builder (ALB) is active. In this case, the theme switches to the template-builder.php file and does not use the custom template or single.php file.

    Best regards,
    Ismael

    #1468146

    My God… Thank you Ismael. I change the file immediately.

    Close the topic ;)

    #1468150

    Ups¡¡ Wait a minute ;)

    I copy template-builder.php as template-builder-single.php and in the new file I write the name:

    <?php
    /*
    	 Template Name: Single ABL
    */

    In which folder will I save the new file, for this will appear in the Template List Selector on the Post Page?
    I copied in my enfold-child (root) and not appear, neither in enfold-child/includes ;(
    Thanks.

    #1468240

    Hi,

    Why do you need to select a template? Unfortunately, you cannot override the template-builder.php file, as it is a special file used exclusively by the Advanced Layout Builder (ALB). If you want to use a custom template, you have to disable the ALB or switch to the default editor.

    Best regards,
    Ismael

    #1468251

    Ok, thanks… now you can close the topic ;)

    #1468260

    Hi,

    Thanks for letting us know. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Customize single.php whit new name’ is closed to new replies.