Skip to main content
Procore

Dropdown Code Editor

Objective 

To manually create a dropdown menu within your Training Center.

Background

The Training Center offers a method to customize HTML and CSS code in order to display pages in a dropdown menu. Other methods are to use our Styled Templates to create drop downs. The CSS code block method includes color coding, which can be helpful for customizing the dropdown code. Alternatively, the HTML code can be used for the same purpose, but without the color coding.

 

Steps

  1. CSS or HTML
CSS
  1. Copy the HTML code below.
  2. Navigate to the page you want to add a dropdown to. 
  3. Click Edit and select Edit Live.
  4. Click Style and select CSS from the dropdown menu. 
  5. Click the + sign to expand the CSS code block. 
  6. Paste or use CTRL + V on your keyboard to paste the copied HTML code into the CSS block. 
  7. Enter the page URL into the '/' portion.
    For example, '/tc/companyname/page'. See the purple outlined area on the screenshot below. 
  8. Enter the title of the page into the 'Link' portion.
    For example, 'PageName'. See the red outlined area on the screenshot below. 
    Dropdown code.png
  9. Repeat steps 7 and 8 for any additional pages you want linked in the customized drop down menu. 
  10. Copy all of the text within the CSS code block. 
  11. Click View and select Source
  12. Paste copied text into the Source/HTML. 
  13. Click Save.
HTML
  1. Copy the HTML code below.
  2. Navigate to the page you want to add a dropdown to. 
  3. Click Edit and select Edit Live.
  4. Click View and select Source
  5. Paste copied text into the Source/HTML. 
  6. Enter the page URL into the '/' portion.
    For example, '/tc/companyname/page'. See the purple outlined area on the screenshot below. 
  7. Enter the title of the page into the 'Link' portion.
    For example, 'PageName'. See the red outlined area on the screenshot below. Dropdown code.png
  8. Repeat steps 6 and 7 for any additional pages you want linked in the customized drop down menu. 
  9. Click Save.

 

---------COPY HTML BELOW----------

<pre class="script-css">
&lt;div class="center"&gt;

    &lt;div class="dropdown"&gt;
        &lt;button class="dropbtn"&gt;
            &amp;nbsp;Dropdown1&amp;nbsp;
            &lt;img alt="dropdown-arrow.svg" class="internal default" height="20px" src="/@api/deki/files/292466/dropdown-arrow.svg" style="width: 20px; height: 20px;" width="20px" /&gt;
        &lt;/button&gt;

        &lt;div class="dropdown-content"&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link1&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link2&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link3&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link4&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link5&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link6&lt;/a&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;div class="dropdown"&gt;
        &lt;button class="dropbtn"&gt;
            &amp;nbsp;Dropdown2&amp;nbsp;
            &lt;img alt="dropdown-arrow.svg" class="internal default" height="20px" src="/@api/deki/files/292466/dropdown-arrow.svg" style="width: 20px; height: 20px;" width="20px" /&gt;
        &lt;/button&gt;

        &lt;div class="dropdown-content"&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link1&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link2&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link3&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link4&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link5&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link6&lt;/a&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;div class="dropdown"&gt;
        &lt;button class="dropbtn"&gt;
            &amp;nbsp;Dropdown3&amp;nbsp;
            &lt;img alt="dropdown-arrow.svg" class="internal default" height="20px" src="/@api/deki/files/292466/dropdown-arrow.svg" style="width: 20px; height: 20px;" width="20px" /&gt;
        &lt;/button&gt;

        &lt;div class="dropdown-content"&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link1&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link2&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link3&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link4&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link5&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link6&lt;/a&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;div class="dropdown"&gt;
        &lt;button class="dropbtn"&gt;
            &amp;nbsp;Dropdown4&amp;nbsp;
            &lt;img alt="dropdown-arrow.svg" class="internal default" height="20px" src="/@api/deki/files/292466/dropdown-arrow.svg" style="width: 20px; height: 20px;" width="20px" /&gt;
        &lt;/button&gt;

        &lt;div class="dropdown-content"&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link1&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link2&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link3&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link4&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link5&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link6&lt;/a&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;div class="dropdown"&gt;
        &lt;button class="dropbtn"&gt;
            &amp;nbsp;Dropdown5&amp;nbsp;
            &lt;img alt="dropdown-arrow.svg" class="internal default" height="20px" src="/@api/deki/files/292466/dropdown-arrow.svg" style="width: 20px; height: 20px;" width="20px" /&gt;
        &lt;/button&gt;

        &lt;div class="dropdown-content"&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link1&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link2&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link3&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link4&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link5&lt;/a&gt;
            &lt;a href="/" target="_blank" title="Link"&gt;Link6&lt;/a&gt;
        &lt;/div&gt;
    &lt;/div&gt;

&lt;/div&gt;</pre>