Custom theme causes problem with Elementor preview

Your code:


is definitely wrong (Oops, see below) – this WordPress function doesn't exist (as far as I know).

Delete this piece of code and it should work. Elementor hangs because the missing function in WordPress will cause an error.

My personal opinion on Elementor is pretty bad – inflated code and addiction to Elementor. They update something, your things crash

I recommend that you install the "Theme Check" plugin.

It will tell you what you are missing, it compares the theme code to WordPress guidelines and is very useful for sticking to WP coding standards.


is correct with the loop in order to display the content.


Here is my loop:

> $page_modus = get_option('show_on_front'); if($page_modus == 'page') { get_template_part('templates/loops/loop-front-page'); } else if($page_modus == 'posts') { get_template_part('templates/loops/loop-archive'); } // Normal Page } elseif(is_page()) { get_template_part('templates/loops/loop-page'); // Comment list if ( comments_open() || get_comments_number() ) { comments_template('/comments.php'); } // Get Commenty Reply Script if ( is_singular()){ wp_enqueue_script('comment-reply'); } // Category, Tags } elseif(is_category() || is_tag()) { get_template_part('templates/loops/loop-archive'); // Home, Archive } elseif(is_home() || is_archive()) { get_template_part('templates/loops/loop-archive'); // Search Result Page } elseif(is_search()) { get_template_part('templates/loops/loop-archive'); // Single Blog Post } elseif(is_single()) { get_template_part('templates/loops/loop-single'); $post_suggestions = wpbs4_get_theme_option('post_suggestions'); if($post_suggestions == 'on'){ get_template_part('templates/post-suggestions'); } // Comment list if ( comments_open() || get_comments_number() ) { comments_template('/comments.php'); } // Get Commenty Reply Script if ( is_singular()){ wp_enqueue_script('comment-reply'); } // Fallback } else { get_template_part('templates/loops/loop-page'); } ?>

This is the extract which is loaded according to the page

// template part "loop-page.php" (The other template parts look a bit different

So the simplified version of the above code would be:


plugins – Elementor: Size of the background image

Guys, I created a form and it has a background image, which fills the whole page, but when I save the request and send me to another screen, the image becomes smaller, how can i normalize?

  • look at the screen while it completely fills the site

enter description of image here

  • Now look when I save the request

enter description of image here

How to generate an automatic shortcode for a custom publication type identical to the Elementor model?

I want to generate an automatic shortcode for the custom publication type. It is the same as the elementor model shortcode.

I have a custom publication type named clients and there are many clients. The unique customer publication type is generated with a custom template. Now what I want is to generate an automatic shortcode for each article. As for client1: [clients name="1"] for client2: [client name="2"]. If I create a new customer, the shortcode will be generated automatically and will be displayed in a field in the list.

I am stuck and have no idea. Please help.

Thank you

Archive (Search) of "Page not found" results using WordPress and Elementor

I built my site with Elementor (Hello theme). My blogs are published on our "news" section and are published with a combination of the WordPress part and the Elementor part. Everything looks like it should, and the search functionality even does what it is supposed to do, except that the browser tab returns the search results (archive) as " Page not found ”, even if the search results are published.

When I go to WordPress Settings> Reading Settings, my home page is set to "Home" static and the message page says "select". When I change this to "News", it replaces all settings with Elementor on our news page and the name of the archive page always appears as "Page Not Found".

I have contacted Elementor Pro support and they cannot understand what the problem is, so you are wondering if anyone else has a similar history and would know how to fix it?

plugins – How can I insert the most recent blog articles in a section with Elementor Page Builder?

My client requested that I create the site with Elemental Page Builder, so I'm having trouble adding the 3 most recent blog articles to a section of the home page. I would much prefer to just use a custom query and loop, but I have to do it with this page builder.

I created a template, which extracts the 3 most recent blog articles in a 3 column layout, but when I try to insert the shortcode of this template in a section of the page Welcome, it only introduces a single blog post from the archive with no featured image.

Anyone have any suggestions or a guide to offer me?

php – Save the widget in Elementor, WordPress

I am creating a custom Elementor widget as a result of its documentation, I have encountered the problem that although it does not show me an error, it also does not save the widget .
I thought I understood the code, but apparently there is something I can't see.

final class Elementor_Extension {

public function init() {


    add_action( 'elementor/widgets/widgets_registered', ( $this, 'register_widgets' ) );


public function includes() {

    require_once( __DIR__ . '/modal-insight.php' );


public function register_widgets() {

    ElementorPlugin::instance()->widgets_manager->register_widget_type( new Elementor_Modal_Widget() );



custom publication types – Why does using WP_Query in a shortcode in an elementor page cause bad training of WP_Query arguments?

I try to incorporate a custom WP_Query inside a shortcode, I activated it on one of my pages (created in Elementor). I have a custom publication type called "inspector-profiles", and for some reason, when I add that in my $ args array, it's not honored by WP or is replaced by something else.

I can not see what causes a crash if something.

The code is as follows:

private function isInspector() {
    if (is_user_logged_in()) {
        $user = wp_get_current_user();
        return in_array('general_inspector', (array)$user->roles);
    return false;

public function sc_inspectorProfileData() {
    global $wpdb;
    $user = wp_get_current_user();

    // WP_Query arguments
    $args = array(
        'post_type'              => 'inspector-profiles',
        'post_status'            => 'publish',
        'author'                 => $user->ID

    // The Query
    echo '

    $myq = new WP_Query( $args );


    if ($myq->have_posts()) {
        while ($myq->have_posts()) {

    echo '

& # 39 ;;

When I create the arguments for WP_Query Above, the $ args array looks correct before running the query. When I run the query, I immediately spit out the generated SQL query, which looks like this:

SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_author IN (1) AND wp_posts.post_type IN ('post', 'page', 'attachment', 'memberpressproduct', 'memberpressgroup', 'mpdl-file', 'ht_kb') AND ((wp_posts.post_status = 'publish')) ORDER BY wp_posts.post_date DESC LIMIT 0, 200

My specified post_type is not even in this list. What am I doing wrong? I've tried using examples of get_posts(), using the WP_Query object, and some things that have been deprecated even.

Use shortcode to implement Javascript in Elementor

To redirect users to different pages after submitting a form in Elementor. The redirection will be based on a stored javascript variable. I gave the send button an identifier called submitbutt.

For the form in Elementor, I selected the Actions after submit at Redirect. Also in the Redirect section, I had chosen the to Shortcode option and refers to my shortcode (elementor-template id="1343").

The shortcode

It's an HTML that includes a javascript and looks like this.

Problem: Once users have clicked the submit button, no redirect takes place.

Create individual borders and colors for the footer in Elementor

Do you see my black row at the top? I would like to have an individual red border around each square of the box. Then, from there, I would like to gather them all down for a footer, so that each box has its own section. I've been trying for days. Please help! [enter the description of the image here] 1

Creating a WordPress Landing Page with Pro Elementor for $ 50

Design a WordPress landing page with elementor pro


Thank you for visiting my page. Looking for a landing page or a compressed page with a professional touch in WordPress? So you are in the right place. Design is one of my passions and I always provide the best service to my clients.

My services:
⇨WordPress landing page
⇨ Response response
⇨squeeze page
⇨ Home page of the product
⇨Promo page

Why choose me:
⇨Use all premium content
⇨Updated for life
⇨Fast delivery
⇨24 hours of online support
⇨100% satisfaction guaranteed
⇨ Unlimited replay

For my packages, you do not need to buy plugin. I will provide everything you need for your creations.

What are you waiting for? Place your order now and do it as soon as you need it.

thank you very much

NOTE: Please contact me before placing your order