Skip to content

Instantly share code, notes, and snippets.

View avblink's full-sized avatar

Alexander Benjamin avblink

View GitHub Profile
ENV NVM_DIR="/usr/local/nvm"
ENV NVM_VERSION=v0.38.0
ENV NODE_VERSION 10.16.3
RUN mkdir -p $NVM_DIR
# Install nvm with node and npm
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION && npm i -g yarn \
`wp_enqueue_style('html5blank', get_template_directory_uri() . '/style.css?v=' . filemtime( get_stylesheet_directory() . '/style.css' ));`

Elementor requires get_header() and get_footer() to load its scripts and templates.

Add this to functions.php

 use ElementorPro\Modules\ThemeBuilder\Module;

function render_elementor_header() {
    if ( function_exists('elementor_theme_do_location') ) {
 elementor_theme_do_location('header');