Home Forums WoodMart support forum Woodmart Theme SEO

Woodmart Theme SEO

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #418484

    Oettchen
    Participant

    Hallo und einen schönen Tag!
    Wir haben durch Pagespeed erfahren, dass wir einige Fehler im Bereich SEO besetigen müssen. Wir haben hier keine Möglichkeit dies zu ändern.
    1. Links können nicht gecrawlt werden (Sreenshot anbei)
    2. Widget haben immer eine gesetzte H4 oder H5 Überschrift) Dies haben wir vorbergehend manuel gelöst
    3.
    Vielen Dank schon einmal

    Attachments:
    You must be logged in to view attached files.
    #418487

    Oettchen
    Participant

    Hier noch ein Sreenshot

    #418713

    Hello,

    Please insert this code to the functions.php of the child theme:

    if ( ! function_exists( 'woodmart_elementor_banner_template' ) ) {
       function woodmart_elementor_banner_template( $settings ) {
          $default_settings = array(
             'image'                    => '',
             'image_height'             => array( 'size' => 0 ),
             'link'                     => '',
             'text_alignment'           => 'left',
             'vertical_alignment'       => 'top',
             'horizontal_alignment'     => 'left',
             'style'                    => '',
             'hover'                    => 'zoom',
             'increase_spaces'          => '',
             'woodmart_color_scheme'    => 'light',
    
             // Button
             'btn_text'                 => '',
             'btn_position'             => 'hover',
             'btn_color'                => 'default',
             'btn_style'                => 'default',
             'btn_shape'                => 'rectangle',
             'btn_size'                 => 'default',
             'hide_btn_tablet'          => 'no',
             'hide_btn_mobile'          => 'no',
             'title_decoration_style'   => 'default',
    
             // Title
             'custom_title_color'       => '',
             'title'                    => '',
             'title_tag'                => 'h4',
             'title_size'               => 'default',
    
             // Subtitle
             'subtitle'                 => '',
             'subtitle_color'           => 'default',
             'custom_subtitle_color'    => '',
             'custom_subtitle_bg_color' => '',
             'subtitle_style'           => 'default',
    
             // Text
             'custom_text_color'        => '',
             'content_text_size'        => 'default',
    
             // Extra.
             'wrapper_classes'          => '',
          );
    
          $settings = wp_parse_args( $settings, $default_settings );
    
          if ( 'parallax' === $settings['hover'] ) {
             woodmart_enqueue_js_library( 'panr-parallax-bundle' );
             woodmart_enqueue_js_script( 'banner-element' );
          }
    
          // Classes.
          $banner_classes          = '';
          $subtitle_classes        = '';
          $title_classes           = '';
          $content_classes         = '';
          $inner_classes           = '';
          $btn_wrapper_classes     = '';
          $image_url               = '';
          $wrapper_content_classes = '';
          $title_wrapper_classes   = '';
    
          // Banner classes.
          $banner_classes .= ' banner-' . $settings['style'];
          $banner_classes .= ' banner-hover-' . $settings['hover'];
          $banner_classes .= ' color-scheme-' . $settings['woodmart_color_scheme'];
          $banner_classes .= ' banner-btn-size-' . $settings['btn_size'];
          $banner_classes .= ' banner-btn-style-' . $settings['btn_style'];
          if ( 'yes' === $settings['increase_spaces'] ) {
             $banner_classes .= ' banner-increased-padding';
          }
          if ( 'content-background' === $settings['style'] ) {
             $settings['btn_position'] = 'static';
          }
          if ( $settings['btn_text'] ) {
             $banner_classes .= ' with-btn';
             $banner_classes .= ' banner-btn-position-' . $settings['btn_position'];
          }
    
          // Subtitle classes.
          if ( woodmart_elementor_is_edit_mode() && ! strstr( $settings['wrapper_classes'], 'elementor-repeater-item' ) ) {
             $subtitle_classes .= ' elementor-inline-editing';
          }
          $subtitle_classes .= ' subtitle-style-' . $settings['subtitle_style'];
          if ( ! $settings['custom_subtitle_color'] && ! $settings['custom_subtitle_bg_color'] ) {
             $subtitle_classes .= ' subtitle-color-' . $settings['subtitle_color'];
          }
          $subtitle_classes .= ' ' . woodmart_get_new_size_classes( 'banner', $settings['title_size'], 'subtitle' );
    
          // Content classes.
          $content_classes .= ' text-' . $settings['text_alignment'];
    
          // Wrapper content classes.
          $wrapper_content_classes .= ' wd-items-' . $settings['vertical_alignment'];
          $wrapper_content_classes .= ' wd-justify-' . $settings['horizontal_alignment'];
          $banner_classes          .= woodmart_get_old_classes( ' banner-vr-align-' . $settings['vertical_alignment'] );
          $banner_classes          .= woodmart_get_old_classes( ' banner-hr-align-' . $settings['horizontal_alignment'] );
    
          // Title classes.
          if ( woodmart_elementor_is_edit_mode() && ! strstr( $settings['wrapper_classes'], 'elementor-repeater-item' ) ) {
             $title_classes .= ' elementor-inline-editing';
          }
          if ( 'default' !== $settings['title_decoration_style'] ) {
             $title_classes .= ' wd-underline-' . $settings['title_decoration_style'];
             woodmart_enqueue_inline_style( 'mod-highlighted-text' );
          }
    
          $title_classes         .= ' ' . woodmart_get_new_size_classes( 'banner', $settings['title_size'], 'title' );
          $title_wrapper_classes .= woodmart_get_old_classes( ' banner-title-' . $settings['title_size'] );
    
          // Content classes.
          if ( woodmart_elementor_is_edit_mode() && ! strstr( $settings['wrapper_classes'], 'elementor-repeater-item' ) ) {
             $inner_classes .= ' elementor-inline-editing';
          }
          $inner_classes .= ' ' . woodmart_get_new_size_classes( 'banner', $settings['content_text_size'], 'content' );
    
          // Button classes.
          if ( 'yes' === $settings['hide_btn_tablet'] ) {
             $btn_wrapper_classes .= ' wd-hide-md-sm';
          }
          if ( 'yes' === $settings['hide_btn_mobile'] ) {
             $btn_wrapper_classes .= ' wd-hide-sm';
          }
    
          // Link settings.
          if ( $settings['link'] && $settings['link']['url'] ) {
             $banner_classes .= ' cursor-pointer';
          }
          if ( isset( $settings['link']['is_external'] ) && 'on' === $settings['link']['is_external'] ) {
             $onclick = 'window.open(\'' . esc_url( $settings['link']['url'] ) . '\',\'_blank\')';
          } else {
             $onclick = 'window.location.href=\'' . esc_url( $settings['link']['url'] ) . '\'';
          }
    
          // Image settings.
          if ( $settings['image']['id'] ) {
             $image_url = woodmart_get_image_url( $settings['image']['id'], 'image', $settings );
          } elseif ( $settings['image']['url'] ) {
             $image_url = $settings['image']['url'];
          }
    
          woodmart_enqueue_inline_style( 'banner' );
    
          $banner_image_classes = '';
    
          if ( ! isset( $settings['image_height']['size'] ) || ( isset( $settings['image_height']['size'] ) && 0 === $settings['image_height']['size'] ) ) {
             $banner_image_classes = ' wd-without-height';
          }
          ?>
          <div class="promo-banner-wrapper<?php echo esc_attr( $settings['wrapper_classes'] ); ?>">
             <div class="promo-banner<?php echo esc_attr( $banner_classes ); ?>" <?php echo $settings['link']['url'] && ! woodmart_elementor_is_edit_mode() ? 'onclick="' . $onclick . '"' : ''; ?>>
                <div class="main-wrapp-img">
                   <div class="banner-image<?php echo esc_attr( $banner_image_classes ); ?>">
                      <?php if ( 'parallax' !== $settings['hover'] ) : ?>
                         <?php echo woodmart_get_image_html( $settings, 'image' ); ?>
                      <?php else : ?>
                         <?php echo apply_filters( 'woodmart_image', '<img src="' . esc_url( $image_url ) . '" class="promo-banner-image" alt="promo-banner-image">' ); ?>
                      <?php endif; ?>
                   </div>
                </div>
    
                <div class="wrapper-content-banner wd-fill<?php echo esc_attr( $wrapper_content_classes ); ?>">
                   <div class="content-banner<?php echo esc_attr( $content_classes ); ?>">
                      <div class="banner-title-wrap<?php echo esc_attr( $title_wrapper_classes ); ?>">
                         <?php if ( $settings['subtitle'] ) : ?>
                            <div class="banner-subtitle<?php echo esc_attr( $subtitle_classes ); ?>" data-elementor-setting-key="subtitle">
                               <?php echo nl2br( $settings['subtitle'] ); ?>
                            </div>
                         <?php endif; ?>
    
                         <?php if ( $settings['title'] ) : ?>
                            <<?php echo esc_attr( $settings['title_tag'] ); ?> class="banner-title<?php echo esc_attr( $title_classes ); ?>" data-elementor-setting-key="title">
                               <?php echo nl2br( $settings['title'] ); ?>
                            </<?php echo esc_attr( $settings['title_tag'] ); ?>>
                         <?php endif; ?>
                      </div>
    
                      <?php if ( $settings['content'] ) : ?>
                         <div class="banner-inner set-cont-mb-s reset-last-child<?php echo esc_attr( $inner_classes ); ?>" data-elementor-setting-key="content">
                            <?php echo do_shortcode( wpautop( $settings['content'] ) ); ?>
                         </div>
                      <?php endif ?>
    
                      <?php if ( $settings['btn_text'] ) : ?>
                         <div class="banner-btn-wrapper<?php echo esc_attr( $btn_wrapper_classes ); ?>">
                            <?php
                            unset( $settings['inline_editing_key'] );
                            woodmart_elementor_button_template(
                               array(
                                  'title'       => $settings['btn_text'],
                                  'color'       => $settings['btn_color'],
                                  'style'       => $settings['btn_style'],
                                  'size'        => $settings['btn_size'],
                                  'align'       => $settings['text_alignment'],
                                  'shape'       => $settings['btn_shape'],
                                  'text'        => $settings['btn_text'],
                                  'inline_edit' => false,
                               ) + $settings
                            );
                            ?>
                         </div>
                      <?php endif; ?>
                   </div>
                </div>
             </div>
          </div>
          <?php
       }
    }

    You can change the tag for the widget in the Theme Settings > Other. https://monosnap.com/file/TPaDKt431aTPB13q5GRJx9bFim0QwK

    If you have any questions please feel free to contact us.

    Best Regards

    #418772

    Oettchen
    Participant

    Thanks in advance for the fantastic support!
    We were able to solve a problem with the H4 using Functions.php. Thanks.
    Unfortunately, we have now discovered further errors that we cannot do anything about in the theme.

    1. Heading items are not arranged in a sequential descending order. H5 Blog (Screenshot 1)We have no way of renaming the H5
    2. Links cannot be crawled!
    I have no possibility to change the code in this area. Screenshot 2

    Thanks kind regards Erika

    Attachments:
    You must be logged in to view attached files.
    #418777

    Oettchen
    Participant

    The contrast ratio of background and foreground colors is not sufficient.
    Screenshot

    Attachments:
    You must be logged in to view attached files.
    #419399

    Hello,

    You can change the tag in the file: inc/widgets/class-widget-recent-posts.php line 81 We will delete it in the future update.

    Please add this custom to the Theme Settings > Custom CSS > Global:

    html .woocommerce-price-suffix {
        color: var(--color-gray-700);
    }

    If you have any questions please feel free to contact us.

    Best Regards

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