• Resolved adrienperinot

    (@adrienperinot)


    Hi,

    I would like to use Elementor on a single page of my website.

    Is there any way I could deactivate it on the other pages/articles ? Basically, I noticed that the Elementor resources (CSS…) are loaded on every pages, which is not optimal in terms of speed.

    Thanks a lot by advance,

    Adrien

Viewing 6 replies - 1 through 6 (of 6 total)
  • Elementor will not load any Elementor related assets (CSS etc) on non-Elementor pages. Having said that, sometimes we are using Elementor on a page without realizing it. For example, if you are using Elementor Pro’s Theme Builder (header and footer) or Popups, then even a non-Elementor page is actually using Elementor for its header/footer or popup unless you’ve excluded it from the Display Conditions. If you are using Elementor headers/footers or popups, then you’ll want to only include the one Elementor page in the Display Conditions of those templates.

    If you are seeing anything else, then something else is going on. Share a URL so we can take a look.

    Thread Starter adrienperinot

    (@adrienperinot)

    Hi,

    I cannot share a URL as I’m testing it on localhost for now using WAMP.

    I tried uninstalling and reinstalling the plugin (including deleting the linked data) but it didn’t have any effect, I still have several Elementor resources being loaded such as :

    <link rel='stylesheet' id='elementor-icons-css'  href='http://www.projethomestudio.local/wp-content/plugins/elementor/assets/lib/eicons/css/elementor-icons.min.css?ver=4.3.0' type='text/css' media='all' />
    <link rel='stylesheet' id='elementor-common-css'  href='http://www.projethomestudio.local/wp-content/plugins/elementor/assets/css/common.min.css?ver=2.5.16' type='text/css' media='all' />

    I am using the free version of Elementor Page Builder, and I don’t seem to have access to any kind of “display conditions”.

    Also, I don’t believe that I ever used / activated anything related to headers or footers.

    Best regards,

    Adrien

    EDIT :

    Now you mention it, the code loaded seems to be somehow related to a header :

    <script type="text/template" id="tmpl-elementor-templates-modal__header">
    	<div class="elementor-templates-modal__header__logo-area"></div>
    	<div class="elementor-templates-modal__header__menu-area"></div>
    	<div class="elementor-templates-modal__header__items-area">
    		<# if ( closeType ) { #>
    			<div class="elementor-templates-modal__header__close elementor-templates-modal__header__close--{{{ closeType }}} elementor-templates-modal__header__item">
    				<# if ( 'skip' === closeType ) { #>
    				<span>Passer</span>
    				<# } #>
    				<i class="eicon-close" aria-hidden="true" title="Fermer"></i>
    				<span class="elementor-screen-only">Fermer</span>
    			</div>
    		<# } #>
    		<div id="elementor-template-library-header-tools"></div>
    	</div>
    </script>
    
    <script type="text/template" id="tmpl-elementor-templates-modal__header__logo">
    	<span class="elementor-templates-modal__header__logo__icon-wrapper">
    		<i class="eicon-elementor"></i>
    	</span>
    	<span class="elementor-templates-modal__header__logo__title">{{{ title }}}</span>
    </script>
    <script type="text/template" id="tmpl-elementor-finder">
    	<div id="elementor-finder__search">
    		<i class="eicon-search"></i>
    		<input id="elementor-finder__search__input" placeholder="Saisissez pour trouver dans Elementor">
    	</div>
    	<div id="elementor-finder__content"></div>
    </script>
    
    <script type="text/template" id="tmpl-elementor-finder-results-container">
    	<div id="elementor-finder__no-results">Aucun résultat trouvé</div>
    	<div id="elementor-finder__results"></div>
    </script>
    
    <script type="text/template" id="tmpl-elementor-finder__results__category">
    	<div class="elementor-finder__results__category__title">{{{ title }}}</div>
    	<div class="elementor-finder__results__category__items"></div>
    </script>
    
    <script type="text/template" id="tmpl-elementor-finder__results__item">
    	<a href="{{ url }}" class="elementor-finder__results__item__link">
    		<div class="elementor-finder__results__item__icon">
    			<i class="eicon-{{{ icon }}}"></i>
    		</div>
    		<div class="elementor-finder__results__item__title">{{{ title }}}</div>
    		<# if ( description ) { #>
    			<div class="elementor-finder__results__item__description">- {{{ description }}}</div>
    		<# } #>
    	</a>
    	<# if ( actions.length ) { #>
    		<div class="elementor-finder__results__item__actions">
    		<# jQuery.each( actions, function() { #>
    			<a class="elementor-finder__results__item__action elementor-finder__results__item__action--{{ this.name }}" href="{{ this.url }}" target="_blank">
    				<i class="eicon-{{{ this.icon }}}"></i>
    			</a>
    		<# } ); #>
    		</div>
    	<# } #>
    </script>

    and then I have

    <script type='text/javascript' src='http://www.projethomestudio.local/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5'></script>
    <script type='text/javascript' src='http://www.projethomestudio.local/wp-content/plugins/elementor/assets/lib/backbone/backbone.radio.min.js?ver=1.0.4'></script>
    <script type='text/javascript' src='http://www.projethomestudio.local/wp-content/plugins/elementor/assets/js/common-modules.min.js?ver=2.5.16'></script>
    <script type='text/javascript' src='http://www.projethomestudio.local/wp-includes/js/jquery/ui/position.min.js?ver=1.11.4'></script>
    <script type='text/javascript' src='http://www.projethomestudio.local/wp-content/plugins/elementor/assets/lib/dialog/dialog.min.js?ver=4.7.1'></script>
    <script type='text/javascript'>
    var elementorCommonConfig = {"version":"2.5.16","isRTL":false,"activeModules":["ajax","finder","connect"],"urls":{"assets":"http:\/\/www.projethomestudio.local\/wp-content\/plugins\/elementor\/assets\/"},"ajax":{"url":"http:\/\/www.projethomestudio.local\/wp-admin\/admin-ajax.php","nonce":"c572fb9e4b"},"finder":{"data":{"edit":{"title":"Modifier","dynamic":true,"name":"edit"},"general":{"title":"G\u00e9n\u00e9ral","dynamic":false,"items":{"saved-templates":{"title":"Mod\u00e8les enregistr\u00e9s","icon":"library-save","url":"http:\/\/www.projethomestudio.local\/wp-admin\/edit.php?post_type=elementor_library&tabs_group=library","keywords":["template","section","page","library"]},"system-info":{"title":"Informations syst\u00e8me","icon":"info","url":"http:\/\/www.projethomestudio.local\/wp-admin\/admin.php?page=elementor-system-info","keywords":["system","info","environment","elementor"]},"role-manager":{"title":"Gestionnaire de r\u00f4le","icon":"person","url":"http:\/\/www.projethomestudio.local\/wp-admin\/admin.php?page=elementor-role-manager","keywords":["role","manager","user","elementor"]},"knowledge-base":{"title":"Base de connaissances","url":"http:\/\/www.projethomestudio.local\/wp-admin\/admin.php?page=go_knowledge_base_site","keywords":["help","knowledge","docs","elementor"]}},"name":"general"},"create":{"title":"Cr\u00e9er","dynamic":false,"items":{"page":{"title":"Ajouter un nouveau Page","icon":"plus-circle","url":"http:\/\/www.projethomestudio.local\/wp-admin\/edit.php?action=elementor_new_post&post_type=page&_wpnonce=e0c5bdf27a","keywords":["post","page","template","new","create"]},"elementor_library":{"title":"Ajouter un nouveau Mod\u00e8le","icon":"plus-circle","url":"http:\/\/www.projethomestudio.local\/wp-admin\/edit.php?post_type=elementor_library#add_new","keywords":["post","page","template","new","create"]}},"name":"create"},"site":{"title":"Site","dynamic":false,"items":{"homepage":{"title":"Page d\u2019accueil","url":"http:\/\/www.projethomestudio.local","icon":"home-heart","keywords":["home","page"]},"wordpress-dashboard":{"title":"Tableau de bord","icon":"dashboard","url":"http:\/\/www.projethomestudio.local\/wp-admin\/","keywords":["dashboard","wordpress"]},"wordpress-menus":{"title":"Menus","icon":"wordpress","url":"http:\/\/www.projethomestudio.local\/wp-admin\/nav-menus.php","keywords":["menu","wordpress"]},"wordpress-themes":{"title":"Th\u00e8mes","icon":"wordpress","url":"http:\/\/www.projethomestudio.local\/wp-admin\/themes.php","keywords":["themes","wordpress"]},"wordpress-customizer":{"title":"Outil de personnalisation","icon":"wordpress","url":"http:\/\/www.projethomestudio.local\/wp-admin\/customize.php","keywords":["customizer","wordpress"]},"wordpress-plugins":{"title":"Extensions","icon":"wordpress","url":"http:\/\/www.projethomestudio.local\/wp-admin\/plugins.php","keywords":["plugins","wordpress"]},"wordpress-users":{"title":"Utilisateurs","icon":"wordpress","url":"http:\/\/www.projethomestudio.local\/wp-admin\/users.php","keywords":["users","profile","wordpress"]}},"name":"site"},"settings":{"title":"R\u00e9glages","dynamic":false,"items":{"general-settings":{"title":"R\u00e9glages g\u00e9n\u00e9raux","url":"http:\/\/www.projethomestudio.local\/wp-admin\/admin.php?page=elementor","keywords":["general","settings","elementor"]},"style":{"title":"Style","url":"http:\/\/www.projethomestudio.local\/wp-admin\/admin.php?page=elementor#tab-style","keywords":["style","settings","elementor"]},"advanced":{"title":"Avanc\u00e9","url":"http:\/\/www.projethomestudio.local\/wp-admin\/admin.php?page=elementor#tab-advanced","keywords":["advanced","settings","elementor"]}},"name":"settings"},"tools":{"title":"Outils","dynamic":false,"items":{"tools":{"title":"Outils","icon":"tools","url":"http:\/\/www.projethomestudio.local\/wp-admin\/admin.php?page=elementor-tools","keywords":["tools","regenerate css","safe mode","debug bar","sync library","elementor"]},"replace-url":{"title":"Remplacer l\u2019URL","icon":"tools","url":"http:\/\/www.projethomestudio.local\/wp-admin\/admin.php?page=elementor-tools#tab-replace_url","keywords":["tools","replace url","domain","elementor"]},"version-control":{"title":"Contr\u00f4le de version","icon":"time-line","url":"http:\/\/www.projethomestudio.local\/wp-admin\/admin.php?page=elementor-tools#tab-versions","keywords":["tools","version","control","rollback","beta","elementor"]},"maintenance-mode":{"title":"Mode maintenance","icon":"tools","url":"http:\/\/www.projethomestudio.local\/wp-admin\/admin.php?page=elementor-tools#tab-maintenance_mode","keywords":["tools","maintenance","coming soon","elementor"]}},"name":"tools"}},"i18n":{"finder":"Finder"}},"connect":[]};
    </script>

    Is there any way to deactivate all of this 🙂 ?

    • This reply was modified 6 years, 10 months ago by adrienperinot.
    Thread Starter adrienperinot

    (@adrienperinot)

    By the way, in the code above, the version is “2.5.16” because I tried downgrading, but the problem was absolutely similar in 2.6.7 😉

    That may be the Finder, which is on while you are logged in to allow you to access the Finder from anywhere on your site, including the front end. Try logging out and checking again.

    Thread Starter adrienperinot

    (@adrienperinot)

    Indeed ! Thank you very much for the help.

    The aforementioned code doesn’t show up for non-admin users or for logged-out users.

    Out of curiosity (and sorry to disturb you again 🙂 ), is it possible to deactivate that functionality ?

    Thanks,

    Adrien

    I’m not aware of any way to disable the Finder.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Deactivate Elementor on some pages’ is closed to new replies.