Okay
  Public Ticket #3759880
Custom Post Type (CPT) page
Closed

Comments

  •  1
    Stef started the conversation

    Is there a template we could use as 'single-posttypeslug.php'? I got this option for some other themes but couldn't find it in the documentation or any other tickets.

    On the single pages of a custom post type there is a main-content div with a header and a class which I want to be gone. For some themes I could just copy a php file (like stated above) and put it in the child theme folder.

    I've already checked https://themenectar.ticksy.com/ticket/794180 but didn't give quite the answer on my question as I have hoped for.

    Thank you in advance!

  •  8,940
    Tahir replied

    Hey Again,

    You can use "page.php" and then copy and make amends as needed. 

    Best 


    ThemeNectar Support Team 

  •  1
    Stef replied

    Thank you Tahir! This is exactly what I needed!

  •  1
    Stef replied

    Hi,

    Again, thanks for the quick response. I used the Image Gallery on a Global Section on a custom post type and the modal popup isn't loading. Is that a bug? The animation and styling of the grid does work but as soon as you click it opens the image path instead of the usual modal.

  •  8,940
    Tahir replied

    Hey Again,

    No this is not a bug rather the scripts are not added on each page therefore you would need it for the CPT.

    Try enqueuing the lightbox script via the Child Theme functions.php file and check:

    wp_enqueue_script( 'fancyBox' );

     

    Best,

     


    ThemeNectar Support Team 

  •  1
    Stef replied

    Hi again!

    Thank you so much! My child theme is behaving a bit strange but it seems to work for now.

    I think the last question will be if there is any way to manipulate settings like activating the transparent header for a CPT?

  •  8,940
    Tahir replied

    Yes you can, please view: https://themenectar.com/docs/salient/metabox-cpt 

    Best


    ThemeNectar Support Team