1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Creating a Page Template Using Library Items

Discussion in 'Free Divi Community Forum' started by Patricia Birchenough, Aug 21, 2018.

  1. What I am looking for is an instruction on how to modify the template and php files to create a customized page template for Divi. Below I outline the particulars.

    - The website is https://adsdev.wpengine.com. It uses the Divi theme and I set up a child theme.

    - The home page is set up using the blank template, which disables the header, navigation and footer areas.

    - I created modules in the home page for the top header (little maid and company info) and a full-width menu (navigation), and at the bottom three rows: the logo row, the locations and the black bottom bar. I can make those modules global sections in Divi for each of these five areas but then I would have to go in and add the global modules to each page. If I realized that we needed that, I could have set up a page layout and could have used the page layout for each page but that did not happen during the initial creation.

    - I am stubborn and don’t really want to use global sections. I always think that when there is a repetitive action, it should be done by some other means.

    - I would like a customized template that calls these sections in.

    - The sections exist as library items (reusable) and I was trying to use the following to ‘place’ them in the template files. Note: The sections I created are not global, but in the tutorial I found about this (https://www.creaweb2b.com/en/add-a-divi-section-inside-page-template/), it states the sections don’t need to be global (which makes sense to me).

    <?php echo do_shortcode('[et_pb_section global_module="7982"][/et_pb_section]'); ?>

    The section ids are:

    7982: header

    7967: navigation

    7971: footer icon links

    7969: ADS Locations

    7970: ADS bottom bar

    - I created a page-template-ADS.php file within the child theme alexandria-domestic-services. I also copied the header.php and footer.php files into the child theme (and other files that I thought I needed but now realize I probably don’t).

    - I tried to modify both the header and footer files to mimic the reference to the page-template-blank.php file, but it doesn’t work exactly right (understatement).

    If anyone can help, I would greatly appreciate it.
     
    1. PRO MEMBER PERKS Divi Ultimate Blog Plugin - Easily set awesome default design for your Divi single blog page:Learn More