ExOmRa
Forum Replies Created
-
Forum: Plugins
In reply to: [Art WooCommerce Order One Click] Изменение заголовка модального окнаЭто видно в исходном коде, на каждой странице сайта. Это так же видно через различные плагины и анализаторы SEO оптимизации сайта.
<div id="awooc-form-custom-order" class="awooc-form-custom-order awooc-hide"> <div class="awooc-close">×</div> <div class="awooc-custom-order-wrap"> <h2 class="awooc-form-custom-order-title"></h2> <div class="awooc-col-wrap"> <div class="awooc-col columns-left "> <div class="awooc-form-custom-order-img"></div><div class="awooc-form-custom-order-price"></div><div class="awooc-form-custom-order-sku"></div><div class="awooc-form-custom-order-attr"></div><div class="awooc-form-custom-order-qty"></div> </div> <div class="awooc-col columns-right "> </div> </div> </div> </div>
В коде видна вся форма, она конечно же скрыта через display: none; и тег <h2> пуст до активации формы. Но он все равно есть и это учитывается.
Речь идет внутренней SEO оптимизации. Вместо h2 лучше было бы использовать обычный тег параграфа. Кроме того, нет никакой нужды выводить код формы на страницах где он не планируется использоваться.
Thanks for your help. This is the solution code. Hope it will help someone.
add_filter( 'woocommerce_structured_data_product', function( $markup, $product ) { if( is_product() ) { $markup['brand'] = $product->get_attribute( 'brand' ); $markup['mpn'] = $product->get_attribute( 'mpn' ); } return $markup; }, 10, 2 );
- This reply was modified 5 years, 1 month ago by ExOmRa.
Thanks for the answer, but seems this filter doesn’t work for page with products. Or I just dont know how to write it right. I use this construction:
add_filter( 'the_seo_framework_receive_json_data', function( $data, $key ) { switch ( $key ) : case 'product': $data['brand'][] = 'test'; break; default: // Unknown key... don't do anything. break; endswitch; return $data; }, 10, 2 );
Forum: Plugins
In reply to: [Wordpress Tooltips] Cyrillic support?Need russian alphabet, it is using in a most post-Soviet countries https://en.wikipedia.org/wiki/Russian_alphabet
- This reply was modified 6 years, 7 months ago by ExOmRa.
Forum: Plugins
In reply to: [Wordpress Tooltips] Cyrillic support?When I create a word in сyrillic, it does not appear in the list of letters on the main page of the glossary.
Forum: Plugins
In reply to: [CM Tooltip Glossary] Does your plugin support words in Cyrillic?Ok thanks. What version do I need?
- This reply was modified 6 years, 7 months ago by ExOmRa.
Forum: Plugins
In reply to: [CM Tooltip Glossary] Does your plugin support words in Cyrillic?When I create a word in сyrillic, it does not appear in the list of letters on the index page of the glossary. How can I solve this?
- This reply was modified 6 years, 7 months ago by ExOmRa.