آموزش طراحی سایت سئو در وبینیو
74 subscribers
21 photos
2 videos
42 files
39 links
کانال وبینیو | طراحی سایت، سئو، دیجیتال مارکتینگ|
👇👇 گروه جهت پرسش و پاسخ و تبادل اطلاعات 👇👇
گروه : @webinew
کانال بله
https://ble.ir/webinew
Download Telegram
woocommerce-tm-extra-product-options_7.4.3.zip
2.5 MB
افزونه گزینه های اضافی محصولات ووکامرس، WooCommerce Extra Product Options
v7.4.3
@webinewcom

لینک توضیحات افزونه
https://www.rtl-theme.com/woocommerce-extra-product-opt-wordpress-plugin/
سرعت باز شدن اف کنوس المنتور به صورت پیشفرض خیلی کم هست و تنظیمی هم نداره که در ابزار ها کنترل ش کنیم. یک تکه کد میذارم که همین کار رو کنترل میکنه :

/* افزایش سرعت انیمیشن منو */
.elementor-widget-off-canvas {
--e-off-canvas-animation-duration: 400ms !important;
}

@webinewcom
معمولا در ووکامرس تا وقتی کاربر یکی از متغیر ها رو انتخاب نکنه قیمت محاسبه نمیشه و دقیق نمایش داده نمیشه.
راه حل اول : اینه که از تنظیمات هر محصول متغیر پیشفرض فعال رو انتخاب کنی که خوب برای هر محصول باید همین کار رو بکنی

راه حل دوم : استفاده از تکه کد زیر در فایل function چایلد تم هست.
با این کد اگر پیشفرض داشت که تغییری نمیده ولی اگر متغیر پیشفرض نداشت خودش با جاوااسکریپت اولین متغیر رو انتخاب میکنه و فعال میشه.

/**
* Auto-select the first variation using JavaScript on the product page.
*/
add_action( 'wp_footer', 'pasha_tex_auto_select_first_variation_js' );

function pasha_tex_auto_select_first_variation_js() {
// Only run on single product pages
if ( ! is_product() ) {
return;
}
?>
<script type="text/javascript">
jQuery(function($) {
// Find the variations form
var $form = $('form.variations_form');

// If a variations form exists...
if ($form.length) {
// Find the first dropdown for attributes
var $firstDropdown = $form.find('.variations select').first();

// If the first dropdown's value is empty (i.e., the placeholder is selected)
if ($firstDropdown.val() === '') {
// Select the first real option (which is at index 1, after the placeholder)
$firstDropdown.find('option:eq(1)').prop('selected', true);

// Trigger the 'change' event to make WooCommerce update the price, image, etc.
$firstDropdown.trigger('change');
}
}
});
</script>
<?php
}
پک ایکون مینیمال برای استفاده در طراحی سایت
میتونید ایکون های دیفالت المنتور رو بذارید کنار و از این پک استفاده بفرمایید
#icon #pack #elementor
@webinewcom
فایل روبوت برای سایت های فروشگاهی


# Optimized robots.txt for WordPress & WooCommerce
# By webinew.com - 09159677791
# Last Updated: 2025

User-agent: *

# --- Block sensitive WordPress core files ---
Disallow: /wp-admin/
Disallow: /wp-login.php
Disallow: /wp-register.php
Disallow: /xmlrpc.php
Disallow: /readme.html

# --- Block only PHP files in includes, plugins, and themes ---
Disallow: /wp-includes/*.php$
Disallow: /wp-content/plugins/*.php$
Disallow: /wp-content/themes/*.php$

# --- Allow assets for proper rendering ---
Allow: /wp-admin/admin-ajax.php
Allow: /wp-includes/js/
Allow: /wp-includes/css/
Allow: /wp-includes/images/

# --- WooCommerce specific ---
Disallow: /wp-content/uploads/wc-logs/
Disallow: /wp-content/uploads/woocommerce_transient_files/
Disallow: /wp-content/uploads/woocommerce_uploads/

# --- Block unnecessary pages and feeds ---
Disallow: /?s=
Disallow: /search/
Disallow: /trackback/
Disallow: /feed/
Disallow: /comments/feed/
Disallow: */feed/$
Disallow: */*/feed/$

# --- Optional archives (uncomment if needed) ---
# Disallow: /author/
# Disallow: /tag/
# Disallow: /category/

# --- Block cache/optimization plugin files ---
Disallow: /wp-content/uploads/wpo/wpo-plugins-tables-list.json

# --- Sitemap (update per project) ---
Sitemap: https://yourdomain.com/sitemap_index.xml
افزونه لرن دش
به همراه ترجمه فارسی

مسیر ترجمه :
wp-content/plugins/sfwd-lms/languages

@webinewcom
آموزش طراحی سایت سئو در وبینیو
Photo
تبدیل «تومان» به گلیف اختصاصی با فونت IRANYekanX در ووکامرس — بدون افزونه!
تو این آموزش نشون می‌دم چطور واحد پول «تومان» رو به گلیف مخصوص فونت تبدیل کنیم تا دقیقاً مثل پیش‌نمایش‌های ایران‌یکان X دیده بشه.

خلاصه مراحل

فونت IRANYekanX (نسخه کامل وب) رو روی سایت لود کنید.

این اسنیپت رو داخل functions.php چایلد تم بذارید و تعداد حالت‌ها رو با عدد مشخص کنید:
define('WEBINEW_TOMAN_HAMZA_COUNT', 2); // ← فقط این عدد را عوض کن
function webinew_toman_hamzas(){
$n = max(1, (int) WEBINEW_TOMAN_HAMZA_COUNT);
return str_repeat('ء', $n);
}

// نماد «تومان» با تریگر گلیف (ءء...)
add_filter('woocommerce_currency_symbol', function($symbol, $currency){
$hamzas = webinew_toman_hamzas(); // "ءء"
if (strpos($symbol, 'تومان') !== false) {
// هر تعداد "ء" قبلی را به دقیقا n تا تبدیل کن
$symbol = preg_replace('/تومانء*/u', 'تومان' . $hamzas, $symbol);
}
if (in_array($currency, ['IRT','TOMAN'], true)) {
$symbol = 'تومان' . $hamzas;
}
return $symbol;
}, 10, 2);

// فرمت قیمت: «عدد + واحد»
add_filter('woocommerce_price_format', function($format, $currency_pos){
return '%1$s %2$s';
}, 10, 2);

// پوشش خروجی‌های متنی قیمت (اگر جایی "تومان" را مستقیم چاپ کند)
add_filter('woocommerce_get_price_html', function($html){
return preg_replace('/تومان(ء*)/u', 'تومان' . webinew_toman_hamzas(), $html);
}, 10, 1);


(اختیاری) روی نماد ارز، letter-spacing:0 و فیچرهای OpenType رو فعال کنید.

نتیجه
«تومان» به‌صورت خودکار با یک/دو/سه ء به گلیف‌های خوش‌فرم ایران‌یکان X تبدیل می‌شود


اگر می‌خوای همین استایل رو برای فروشگاهت پیاده‌سازی کنم یا یک سایت سریع، سبک و سئو-محور می‌خوای، پیام بده تا صفر تا صد طراحی، توسعه و بهینه‌سازی رو برات انجام بدم.

#طراحی_سایت #ووکامرس #وردپرس #IRANYekanX #ایرانیکانX #فونت_فارسی #تومان #گلیف #OpenType #Woodmart #سئو #وبینیو #طراحی_سایت_مشهد #مشاور_کسب_و_کار #توسعه_وب
معمولا wordcount در اسکیمایی که توسط یاست سئو ایجاد میشه اشتباه هست.
حتما یکبار اسکیما ها رو چک کنید از طریق لینک زیر
https://validator.schema.org/

اگر wordcount مقدارش با تعداد کلمات بلاگ تون کمتر بود با استفاده از کد زیر اصلاح ش کنید.

add_filter('wpseo_schema_article', function( $data, $context ){
$post = get_post( $context->id );
if ( ! $post ) return $data;

$text = wp_strip_all_tags( $post->post_content );
// شمارش ساده بر اساس فاصله برای فارسی
$text = preg_replace('/\s+/u', ' ', trim($text));
$words = $text === '' ? 0 : count( preg_split('/\s/u', $text) );

// اگر کمتر از 50 شد (علامت خطر)، بهتره حذفش کنیم تا ناسازگاری ایجاد نشه
if ( $words >= 50 ) {
$data['wordCount'] = $words;
} else {
unset($data['wordCount']);
}
return $data;
}, 15, 2 );
wp-cerber-9.6.9.zip
2.2 MB
WP Cerber Security, Anti-spam, and Malware Scan 9.6.9
افزونه امنیتی جایگزین مناسب برای وردفنس
wordfence


مزایا
تعداد کوئری کمتر روی صفحات مشابه با سایتی که افزونه وردفنس رو داره.
در ووکامرس اگر بخوایم فقط محصولات تخفیف دار رو در یک لینک نشون بدیم کد زیر راه حل کار هست :

function filter_shop_products_on_sale( $query ) {
if ( ! is_admin() && $query->is_main_query() && is_post_type_archive( 'product' ) && isset( $_GET['onsale'] ) ) {
global $wpdb;

// دریافت محصولات متغیر با تخفیف
$on_sale_variable_ids = $wpdb->get_col( "
SELECT DISTINCT post_parent
FROM {$wpdb->posts} AS p
INNER JOIN {$wpdb->postmeta} AS pm ON p.ID = pm.post_id
WHERE pm.meta_key = '_sale_price'
AND pm.meta_value > 0
AND p.post_type = 'product_variation'
AND p.post_status = 'publish'
" );

// دریافت محصولات ساده با تخفیف
$on_sale_simple_ids = $wpdb->get_col( "
SELECT ID
FROM {$wpdb->posts} AS p
INNER JOIN {$wpdb->postmeta} AS pm ON p.ID = pm.post_id
WHERE pm.meta_key = '_sale_price'
AND pm.meta_value > 0
AND p.post_type = 'product'
AND p.post_status = 'publish'
" );

$on_sale_ids = array_merge( $on_sale_simple_ids, $on_sale_variable_ids );

if ( ! empty( $on_sale_ids ) ) {
$query->set( 'post__in', $on_sale_ids );
} else {
$query->set( 'post__in', array( 0 ) );
}
}
}
add_action( 'pre_get_posts', 'filter_shop_products_on_sale' );


برای فراخونبی محصولات تخفیف خورده کافیه لینک زیر رو بزنی :
https://yoursite.com/shop/?onsale=1

@webinewcom