How to use ACF Pro Flexible Content with Single Page?

I’m developing a website with Flexible content. I’m using it as a builder basically.

I’m in the page section, e.g. Portfolio, and I can “Add row”. Awesome! ALl of these pages are using page.php where this code is displayed:

if( have_rows('template_blocks') ):

while ( have_rows('template_blocks') ) : the_row();

    if( get_row_layout() == 'header_page' ):
       get_template_part( 'templates/section', 'header-page' );

    elseif( get_row_layout() == 'header_main' ):
       get_template_part( 'templates/section', 'header-main' );

    elseif( get_row_layout() == 'services_excerpt' ):
       get_template_part( 'templates/section', 'services-excerpt' );

    elseif( get_row_layout() == 'contact' ):
       get_template_part( 'templates/section', 'contact' );

    elseif( get_row_layout() == 'services_tabs' ):
       get_template_part( 'templates/section', 'services-tabs' );

    elseif( get_row_layout() == 'standards' ):
       get_template_part( 'templates/section', 'standards' );

    elseif( get_row_layout() == 'contact' ):
       get_template_part( 'templates/section', 'contact' );

    elseif( get_row_layout() == 'footer' ):
       get_template_part( 'templates/section', 'footer' );

    elseif( get_row_layout() == 'bar_secondary' ):
       get_template_part( 'templates/section', 'bar-secondary' );

    elseif( get_row_layout() == 'process' ):
       get_template_part( 'templates/section', 'process' );

    elseif( get_row_layout() == 'empty_bar' ):
       get_template_part( 'templates/section', 'empty-bar' );

    elseif( get_row_layout() == 'form_section' ):
       get_template_part( 'templates/section', 'form-section' );

    elseif( get_row_layout() == 'callout' ):
       get_template_part( 'templates/section', 'callout' );

    elseif( get_row_layout() == 'ready_bar' ):
       get_template_part( 'templates/section', 'ready-bar' );

    elseif( get_row_layout() == 'portfolio_excerpt' ):
       get_template_part( 'templates/section', 'portfolio-excerpt' );

    elseif( get_row_layout() == 'services_card' ):
       get_template_part( 'templates/section', 'services-card' );

    elseif( get_row_layout() == 'about_author' ):
       get_template_part( 'templates/section', 'about-author' );

    elseif( get_row_layout() == 'work_featured' ):
       get_template_part( 'templates/section', 'work-featured' );

    elseif( get_row_layout() == 'work_all' ):
       get_template_part( 'templates/section', 'work-all' );

    elseif( get_row_layout() == 'work_tab' ):
       get_template_part( 'templates/section', 'work-tab' );

    elseif( get_row_layout() == 'action_block' ):
       get_template_part( 'templates/section', 'action-block' );
    endif;

endwhile; endif;

?> However, now I created Custom Post Type

Custom Fields -> Show this field group in: Post Type [is equal to] [Projects]

So I go ahead and create few projects. Now, in the code, I get the WP Query, so i can take these proejcts.

However, now I click a project, and where it goes? It goes to single.php page! How do I edit single.php page? There is no option like for a nromal page.

How do I say, add single page for portfolio, and add the flexible content?

Sure, I can add in the same code that that’s in page.php, but so what? Where do I go to view the single page in the WP admin dashboard?

I know it’s possible.

I have been trying to figure this out for a while now, and I can’t figure it out.

Here is the github repo if that helps: https://github.com/AurelianSpodarec/aurelianMegaPortfolio2018

Currently I have: Home, Services, Process, About, Contact, Portfolio.

All of them are using page.php, and when I go to Admin Dashboard page, I just ‘Add row’, and that way I can achieve unique look for every single page that I mentioned, apart from single.php, because how do I make single.php for projects? or services ?