Divi Blog Gönderi Teklifinin Uzunluğunu Değiştirme

Gönderi alıntısı, bir blog veya arşiv sayfasındaki her yayın başlığının altında görünen yayın içeriğinin kısa bir sürümüdür. WordPress kullanıcıları için, “alıntı” teriminin kullanımı genellikle üç farklı şeyden birini ifade eder – manuel alıntılar, otomatik tırnak veya teaser. Bir gönderiyi düzenlerken manuel tırnak alıntı metin kutusuna “manuel” eklenebilir. Otomatik alıntılar “Otomatik olarak” oluşturuldu, temanız gönderi şablonunda the_excerpt () etiketi kullandığında (Divi varsayılan olarak kullanır). Gönderinizde “diğer etiketler” kullanırsanız ve post şablonunda the_content () etiketini kullanarak temanız kullanırsanız görüntülenen şeydir.
Bu yazıda, yayınınızı görüntülemek için bir blog modülü veya standart bir blog şablonu kullanın, Divi’nin otomatik alıntılarının uzunluğunu nasıl değiştireceğinizi göstereceğim. Ayrıca, yayınlarınızın her biri için nasıl manuel bir teklif üreteceğinizi de göstereceğim. Başlayalım! Divi blog gönderinizin uzunluğunu değiştirme, YouTube kanalımız değişir, standart blog sayfası için otomatik teklifin uzunluğunu değiştirir ve divi kategorisi sayfaları Divi blog yazı alıntısının varsayılan uzunluğu 270 karakterdir.

Blog sayfanız ve kategori sayfanız için varsayılan teklifin uzunluğunu değiştirmek, divi.php dizin dosyasında değişiklikler gerektirir.
Çocuk temasına dizin.php dosyasının bir kopyasını ekleyin. Bir çocuğun temasını yüklemezseniz, ilk göreviniz bunu yapmaktır.

Metin düzenleyicinizi kullanarak index.php dosyasını açın ve aşağıdaki kod disiplini bulun: truncate_post (270);

“270” numarasını teklif karakterinizin uzunluğu ile istediğiniz her şeye değiştirin. Bir teklifin 470 karakter uzunluğuna sahip olmasını istiyorsanız, kodu aşağıdakilerle değiştirin: truncate_post (470); Dosyanızı kaydedin ve yerindeki yeni teklifin uzunluğunu görmek için blog yayın sayfanızı ve/veya kategori sayfanızı kontrol edin .

Divi Blog Modülünün Uzunluğunu Değiştirme Posta Teklifi Blog sayfanız için blog modülünü kullanırsanız, otomatik tırnak uzunluğunu değiştirmek, divi tema dosyasında play-modules.php’nin değiştirilmesini gerektirir.

Yine, ilk adım (eğer yapmadıysanız) bir çocuk teması oluşturmaktır, böylece temanız için gelecekteki güncelleme ayarlamalarınızı dışlamayacaktır. Çocuğunuzun teması sitenizde oluşturulduktan ve etkinleştirildikten sonra, blog modül kodunu alt temaya yeniden tanımlamanız ve taşımanız gerekir. Bunu yapmak için, çocuğunuzun tema klasöründe “Özel Modül” adlı yeni bir klasör oluşturun.
Yeni “Özel Modüller” klasöründe, “cbm.php” adlı yeni bir dosya oluşturun

CBM.PHP dosyanızda, başlangıçta Play-Modules.php dosyasında bulunan blog modülünü kontrol eden kodun (biraz değiştirilmiş) aşağıdaki kopyasını girin (Açılış PHP etiketini üstüne eklediğinizden emin olun. dosyanız aşağıdaki koddan önce):

Not: Bu bir yuvarlanma kodu kutusu. Her şeyi almak için seçmeli ve sürüklemelisiniz.
name = esc_html __ (‘blog’, ‘et_builder’);
$ this-> slug = ‘et_pb_blog’;
$ this-> fb_support = true;
$ this-> whitelisted_fields = dizi (
‘Tam genişlik’,
‘Posts_number’,
‘Dahil_categories’,
‘meta_date’,
‘show_thumbnail’, ‘show_content’,
‘Daha fazla göster’,
‘show_author’,
‘show_date’,
‘show_categories’,
‘show_comments’,
‘show_pagination’,
‘Offset_number’,
‘arka plan_layout’,
‘admin_label’,
‘MODULE_ID’,
‘Module_class’,
‘Masonry_tile_background_color’,
‘USE_DROPHADOW’,
‘USE_OVERLAY’,
‘Overlay_icon_color’,
‘hover_overlay_color’,
‘hover_icon’,
);
$ this-> fields_defaults = dizi (
‘Fullwidth’ => dizi (‘açık’),
‘Posts_number’ => dizi (10, ‘add_default_setting’),
‘meta_date’ => dizi (‘m j, y’, ‘add_default_setting’),
‘show_thumbnail’ => dizi (‘açık’),
‘show_content’ => dizi (‘kapalı’),
‘show_more’ => dizi (‘kapalı’),
‘show_author’ => dizi (‘açık’),
‘show_date’ => dizi (‘açık’),
‘show_categories’ => dizi (‘açık’),
‘show_comments’ => dizi (‘kapalı’),
‘show_pagination’ => dizi (‘açık’),
‘Offset_number’ => dizi (0, ‘sadece_default_setting’),
‘arka plan_layout’ => dizi (‘ışık’),
‘USE_DROPHADOW’ => dizi (‘Kapalı’),
‘use_ovlay’ => dizi (‘kapalı’),
);
$ this-> main_css_element = ‘%% sipariş_class %% .et_pb_post’;
$ this-> options_toggles = dizi (
‘Genel’ => dizi (
‘Geçiş’ => dizi (
‘main_content’ => esc_html __ (‘içerik’, ‘et_builder’),
‘Elements’ => esc_html __ (‘öğeler’, ‘et_builder’),
‘Arka plan’ => esc_html __ (‘arka plan’, ‘et_builder’),
),
),
‘Gelişmiş’ => dizi (
‘Geçiş’ => dizi (
‘Düzen’ => ESC_HTML __ (‘Düzen’, ‘ET_BUILDER’),
‘Kaplama’ => esc_html __ (‘kaplama’, ‘et_builder’),
‘Metin’ => dizi (
‘başlık’ => esc_html __ (‘metin’, ‘et_builder’),
‘Öncelik’ => 49,
),
),
),
);
$ this-> advanced_options = dizi (‘yazı tipleri’ => dizi (
‘Başlık’ => dizi (
‘Etiket’ => esc_html __ (‘başlık’, ‘et_builder’),
‘CSS’ => dizi (
‘Play’ => “{$ this-> main_css_element}. entry-title”,
‘Color’ => “{$ this-> main_css_element}. Entry-title A”,
‘Plugin_main’ => “{$ this-> main_css_element} .entry-title, {$ this-> main_css_element} .NEntry-title A”,
‘Önemli’ => ‘hepsi’,
),
),
‘Gövde’ => dizi (
‘Etiket’ => esc_html __ (‘gövde’, ‘et_builder’),
‘CSS’ => dizi (
‘Play’ => “{$ this-> main_css_element} .post-content, %% order_class %%. ET_PB_BG_LAYOUT_LIGHT.
‘color’ => “{$ this-> main_css_element}, {$ this-> main_css_element} .post-concent *”,
‘line_height’ => “{$ this-> main_css_element} p”,
‘plugin_main’ => “{$ this-> main_css_element}, %% sipariş_class %%. Et_pb_bg_layout_light_light_light_plass %%. et_pb_bg_layout_dark .et_pb_post a.more-link “,
),
),
‘Meta’ => dizi (
‘Etiket’ => esc_html __ (‘meta’, ‘et_builder’),
‘CSS’ => dizi (
‘Play’ => “{$ this-> main_css_element} .post-meta, {$ this-> main_css_element} .post-meta a”,
‘plugin_main’ => “{$ this-> main_css_element} .post-meta, {$ this-> main_css_element} .post-meta a, {$ this-> main_css_element}
),
),
),
‘Sınır’ => dizi (
‘CSS’ => dizi (
‘Play’ => “%% Order_class %%. ET_PB_MODULE .ET_PB_POST”, ‘önemli’ => ‘plugin_only’,
),
),
);
$ this-> custom_css_options = dizi (
‘Başlık’ => dizi (
‘Etiket’ => esc_html __ (‘başlık’, ‘et_builder’),
‘Seçici’ => ‘. Entry-title’,
),
‘Post_meta’ => dizi (
‘Etiket’ => esc_html __ (‘post meta’, ‘et_builder’),
‘Seçici’ => ‘.post-meta’,
),
‘Pagenavi’ => dizi (
‘Etiket’ => esc_html __ (‘pagenavi’, ‘et_builder’),
‘seçici’ => ‘.wp_pagenavi’,
),
‘featured_image’ => dizi (
‘Etiket’ => esc_html __ (‘özellikli resim’, ‘et_builder’),
‘Seçici’ => ‘.et_pb_image_container’,
),
‘Read_more’ => dizi (
‘Etiket’ => ESC_HTML __ (‘Devamını Oku’, ‘ET_BUILDER’),,
‘Seçici’ => ‘.more-link’,
),
);
}
/**
* Blog modülü için blog yayınları alın
*
* @param dizi argümanları ET_PB_BLOG tarafından kullanılan
* @Return String Blog Gönderi İşaretlemesi
*/
Statik işlev get_blog_posts ($ args = array (), $ condital_tags = array (), $ current_page = array ()) {
Global $ Paged, $ Post, $ wp_query, $ et_fb_processing_shortcode_object, $ et_pb_rendering_column_content;
$ global_processing_original_value = $ et_fb_processing_shortcode_object;
// Varsayılan paramler, ET_PB_BLOG tarafından kullanılan özelliklerin kombinasyonudur ve
// Args’ı geçerek simüle edilmesi gereken koşullu etiketler (Ajax doğası nedeniyle)
$ varsayılan = dizi (
‘Fullwidth’ => ”,
‘Posts_number’ => ”,
‘Dahil_categories’ => ‘,
‘meta_date’ => ”,
‘show_thumbnail’ => ”,
‘show_content’ => ”,
‘show_author’ => ”,
‘show_date’ => ”,
‘Show_categories’ => ”, ‘show_comments’ => ”,
‘show_pagination’ => ”,
‘arka plan_layout’ => ”,
‘Show_more’ => ”,
‘Offset_number’ => ”,
‘masonry_tile_background_color’ => ”,
‘USE_DROPHADOW’ => ”,
‘Overlay_icon_color’ => ”,
‘hover_overlay_color’ => ”,
‘hover_icon’ => ”,
‘USE_OVERlay’ => ”,
);
// WordPress’in yerel koşullu etiketi yalnızca sayfa yükü sırasında kullanılabilir. Bileşen güncellemesi sırasında başarısız çünkü
// et_pb_pricess_computed_proupereper () admin-ajax.php. Böylece, sayfa yükünde WordPress’in koşullu etiketlerini kullanın ve
// Ajax çağrısı için $ chastal_tags için röle
$ is_front_page = et_fb_conditional_tag (‘IS_FRONT_PAGE’, $ condrace_tags);
$ is_search = et_fb_conditional_tag (‘Is_search’, $ condrace_tags);
$ is_single = et_fb_conditional_tag (‘Is_single’, $ condrace_tags);
$ et_is_builder_plugin_active = et_fb_conditional_tag (‘et_is_builder_plugin_active’, $ coondal_tags);
$ container_is_closed = false;
// Geçerli temanın ses modülüne herhangi bir öğe eklemediğinden emin olmak için WP ses kısa kodundan tüm filtreleri kaldırın
remove_all_filters (‘wp_audio_shortcode_library’);
remove_all_filters (‘wp_audio_shortcode’);
remove_all_filters (‘wp_audio_shortcode_class’);
$ args = wp_parse_args ($ args, $ varsayılan);
$ Overlay_utput = ”;
$ hover_icon = ”;
if (‘açık’ === $ args [‘use_overlay’]) {
$ data_icon = ”! == $ args [‘hover_icon’]
? Sprintf (
‘Data-icon = “%1 $ s”,
ESC_ATTR (ET_PB_Prosess_font_icon ($ args [‘hover_icon’))))))))))))))))))))))))))))))))))))))))))))))))))
: ”;
$ Overlay_utput = Sprintf (
‘ ‘,
(”! == $ args [‘hover_icon’]? ‘et_pb_inline_icon’: ”),
$ data_icon
);
}
$ overlay_class = ‘on’ === $ args [‘use_overlay’]? ‘et_pb_has_overlay’: ”;
$ query_args = dizi (
‘Posts_per_Page’ => IntVal ($ args [‘Post_number’]),,
‘Post_status’ => ‘yayın’,
);
if (tanımlanmış (‘yapıyor_ajax’) && isset ($ current_page [‘paged’])))) {
$ Paged = intVal ($ current_page [‘Paged’]);
} başka {
$ Paged = $ IS_FRONT_PAGE? get_query_var (‘sayfa’): get_query_var (‘sayfa’);
}
// VB’de Pagination’ı Destekleyin
if (isset ($ args [‘__ sayfa’]))) {
$ Paged = $ args [‘__ sayfa’];
}
if (”! == $ args [‘dahil_categories’]) {
$ query_args [‘kedi’] = $ args [‘dahil_categories’];
}
if (! $ is_search) {
$ query_args [‘Paged’] = $ Paged;
}
if (”! == $ args [‘offset_number’] &&! boş ($ args [‘offset_number’]))) {
/**
* Ofset + Pagination iyi oynamayın. Manuel ofset hesaplaması gerekli
* @see: https://codex.wordpress.org/making_custom_queries_using_offset_and_pagination
*/
eğer ($ Paged> 1) {
$ query_args [‘ofset’] = (($ sayfa – 1) * intVal ($ args [‘post_number’]))) + aralıklar ($ args [‘offset_number’]);
} başka {
$ query_args [‘ofset’] = aralık ($ args [‘offset_number’]);
}
}
if ($ is_single) {
$ query_args [‘post__Not_in’] [] = get_the_id ();
}
// sorgu al
$ query = yeni wp_query ($ query_args);
// Sayfa’nın $ wp_query global
$ wp_query_page = $ wp_query;
// Page’ın $ wp_query’yi bu modülün sorgusuna çevirin
$ wp_query = $ query;
Ob_start ();
if ($ query-> heat_posts ()) {
if (‘açık’! == $ args [‘fullwidth’]) {
echo ‘
‘;}
while ($ query-> heat_posts ()) {
$ query-> the_post ();
Global $ et_fb_processing_shortcode_object;
$ global_processing_original_value = $ et_fb_processing_shortcode_object;
// FB işleme bayrağını sıfırlayın
$ et_fb_processing_shortcode_object = false;
$ thumb = ”;
$ width = ‘on’ === $ args [‘fullwidth’]? 1080: 400;
$ width = (int) Appl_filters (‘et_pb_blog_image_width’, $ genişlik);
$ Height = ‘on’ === $ args [‘fullwidth’]? 675: 250;
$ Height = (int) Appl_filters (‘et_pb_blog_image_height’, $ yükseklik);
$ classtext = ‘on’ === $ args [‘fullwidth’]? ‘et_pb_post_main_image’: ”;
$ titletext = get_the_title ();
$ thumbnail = get_thumbnail ($ width, $ yükseklik, $ classtext, $ titlext, $ titlext, false, ‘blogImage’);
$ thumb = $ thumbnail [“başparmak”];
$ no_thumb_class = ” === $ başparmak || ‘kapalı’ === $ args [‘show_thumbnail’]? ‘et_pb_no_thumb’: ”;
$ post_format = et_pb_post_format ();
if (in_array ($ post_format, dizi (‘video’, ‘galeri’))))) {
$ no_thumb_class = ”;
}
// Çıktı yazdırın
?>
<makale id = "" > >>
>>

‘,
$ başparmak
): ”;
printf (

%1 $ s
%2 $ s
‘,
$ video_overlay,
$ first_video
);
elseif (‘galeri’ === $ Post_format):
et_pb_gallery_images (‘kaydırıcı’);
elseif (”! == $ başparmak && ‘on’ === $ args [‘show_thumbnail’]):
if (‘on’! == $ args [‘fullwidth’]) echo ‘
‘; ?>
<a href="<?php Esc_url( the_permalink());?


<? Php
if ('on'! == $ args ['fullwidth']) echo ' ‘;
Endif;
}
?>

<a href=" “>

<? Php
if ('on' === $ args ['show_author'] || 'on' === $ args ['show_date'] || 'on' === $ args ['show_categories'] || 'açık' === $ args ['show_comments']) {
printf ('
%1 $ s %2 $ s %3 $ s %4 $ s %5 $ s %6 $ s 7 $ s
',
(
'açık' === $ args ['show_author']
? ET_GET_SAFE_LOCALICION (sprintf (__ (' %s', 'et_builder'), ''. et_pb_get_the_author_posts_link (). ' '):' '):'
),
(
('açık' === $ args ['show_author'] && 'on' === $ args ['show_date']))
? '| '
: ''
),
(
'açık' === $ args ['show_date']
? ET_GET_SAFE_LOCALICION (sprintf (__ ('%s', 'et_builder'), ''. Esc_html (get_the_date ($ args ['meta_date'])). '’ ‘).
: ”
),
(
(‘on’ === $ args [‘show_author’] || ‘on’ === $ args [‘show_date’]) && ‘on’ === $ args [‘show_categories’]))
? ‘| ‘
: ”
),
(
‘açık’ === $ args [‘show_categories’]
? get_the_category_list (‘,’)
: ”
),
(
(‘on’ === $ args [‘show_author’] || ‘on’ === $ args [‘show_date’] || ‘on’ === $ args [‘show_categories’]) && ‘açık’ === $ args [‘show_comments’])
? ‘| ‘
: ”
),
(
‘açık’ === $ args [‘show_comments’]
? sprintf (ESC_html (_nx (‘%s yorum’, ‘%s yorum’, get_comments_number (), ‘yorum sayısı’, ‘et_builder’), number_format_i18n (get_comments_number ())
: ”
)
);
}
$ post_content = et_strip_shortcodes (et_delete_post_first_video (get_the_content ()), true);
// FB işleme bayrağını sıfırlayın
$ et_fb_processing_shortcode_object = false;
// Dahili içeriği işlediğimizi gösterecek şekilde bayrağı ayarlayın
$ et_pb_rendering_column_content = true;
// Dahili stilleri düzgün bir şekilde oluşturmak için gereken tüm özellikleri sıfırlayın
Et_builder_element :: clean_internal_modules_styles ();
echo ‘
‘;
if (‘açık’ === $ args [‘show_content’]) {
Global $ more;
// Page Builder daha fazla etiketi desteklemiyor, bu nedenle sayfa oluşturucu ile yapılan yayın durumunda the_content () görüntüleyin
if (et_pb_is_pageBuilder_used (get_the_id ())) {$ more = 1;
Echo appling_filters (‘the_content’, $ post_content);
} başka {
$ more = null;
Echo appling_filters (‘the_concent’, et_delete_post_first_video (get_the_content (esc_html __ (‘daha fazla …’, ‘et_builder’))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) ))))))))
}
} başka {
if (has_excerpt ()) {
The_excerpt ();
} başka {
if (”! == $ Post_Content) {
// tracate_post () içindeki içeriği doğru bir şekilde almak için $ et_fb_processing_shortcode_object false olarak ayarlayın
$ et_fb_processing_shortcode_object = false;
echo wpautop (et_delete_post_firsst_video (strip_shortcodes (truncate_post (270, false, ”, true))));
// $ ET_FB_PROCESSING_SHORTCODE_OBJECT’i orijinal değerine sıfırlayın
$ et_fb_processing_shortcode_object = $ global_processing_original_value;
} başka {
Eko ”;
}
}
}
$ et_fb_processing_shortcode_object = $ global_processing_original_value;
// Blog içeriğindeki modüller için stilleri alın
$ internal_style = et_builder_element :: get_style (true);
// Styles’ı aldıktan sonra tüm özellikleri sıfırlayın
Et_builder_element :: clean_internal_modules_styles (false);
$ et_pb_rendering_column_content = false;
// Blog içeriğine stilleri ekleyin
if ($ internal_style) {
printf (

%1 $ s
‘,
$ Internal_style
);
}
echo ”;
if (‘açık’! == $ args [‘show_content’]) {
$ More = ‘açık’ == $ args [‘show_more’]? Sprintf (‘%2 $ s ‘, esc_url (get_permalink ()), esc_html __ (‘daha fazla oku’, ‘et_builder)) ): ”;
echo $ more;
}
?>

<? Php
$ et_fb_processing_shortcode_object = $ global_processing_original_value;
} // endwhile
if ('açık'! == $ args ['fullwidth']) {
echo '’;
}
if ( ‘on’ === $args[‘show_pagination’] && ! $is_search ) {
// echo ‘
‘; // @todo this causes closing tag issue
$container_is_closed = true;
if ( function_exists( ‘wp_pagenavi’ ) ) {
wp_pagenavi( array(
‘query’ => $query
));
} başka {
if ( $et_is_builder_plugin_active ) {
include( ET_BUILDER_PLUGIN_DIR . ‘includes/navigation.php’ );
} başka {
get_template_part( ‘includes/navigation’, ‘index’ );
}
}
}
wp_reset_query();
} başka {
if ( $et_is_builder_plugin_active ) {
include( ET_BUILDER_PLUGIN_DIR . ‘includes/no-results.php’ );
} başka {
get_template_part( ‘includes/no-results’, ‘index’ );
}
}
wp_reset_postdata ();
// Reset $wp_query to its origin
$wp_query = $wp_query_page;
$posts = ob_get_contents();
ob_end_clean();
return $posts;
}
function shortcode_callback( $atts, $content = null, $function_name ) {
/**
* Cached $wp_filter so it can be restored at the end of the callback.
* This is needed because this callback uses the_content filter / calls a function
* which uses the_content filter. WordPress doesn’t support nested filter
*/
global $wp_filter;
$wp_filter_cache = $wp_filter;
$module_id = $this->shortcode_atts[‘module_id’];
$module_class = $this->shortcode_atts[‘module_class’];
$fullwidth = $this->shortcode_atts[‘fullwidth’];
$posts_number = $this->shortcode_atts[‘posts_number’];
$ Incors_Categories = $ this-> Shortcode_atts [‘Insporren_categories’]; $ meta_date = $ this-> Shortcode_atts [‘meta_date’];
$ show_thumbnail = $ this-> Shortcode_atts [‘show_thumbnail’];
$ show_content = $ this-> Shortcode_atts [‘show_content’];
$ show_author = $ this-> Shortcode_atts [‘show_author’];
$ show_date = $ this-> Shortcode_atts [‘show_date’];
$ show_categories = $ this-> Shortcode_atts [‘show_categories’];
$ show_comments = $ this-> Shortcode_atts [‘show_comments’];
$ show_pagination = $ this-> Shortcode_atts [‘show_pagination’];
$ arka plan_layout = $ this-> Shortcode_atts [‘arka plan_layout’];
$ show_more = $ this-> Shortcode_atts [‘show_more’];
$ offset_number = $ this-> Shortcode_atts [‘Offset_number’];
$ masonry_tile_background_color = $ this-> Jortcode_atts [‘masonry_tile_background_color’];
$ use_drophadow = $ this-> Shortcode_atts [‘USE_DROPHADOW’];
$ Overlay_icon_color = $ this-> Shortcode_atts [‘Overlay_icon_color’];
$ hover_overlay_color = $ this-> Shortcode_atts [‘hover_overlay_color’];
$ hover_icon = $ this-> Shortcode_atts [‘hover_icon’];
$ use_overlay = $ this-> Shortcode_atts [‘use_overlay’];
Global $ Paged;
$ module_class = et_builder_element :: add_module_order_class ($ module_class, $ function_name);
$ container_is_closed = false;
// Bazı temalar bu stilleri/komut dosyalarını içermez, bu nedenle sesli post formatını desteklemek için bunları bu modüle enque etmemiz gerekir
wp_enqueue_style (‘wp-mediaElement’);
wp_enqueue_script (‘wp-mediaElement’);
// Geçerli temanın ses modülüne herhangi bir öğe eklemediğinden emin olmak için WP ses kısa kodundan tüm filtreleri kaldırın
remove_all_filters (‘wp_audio_shortcode_library’);
remove_all_filters (‘wp_audio_shortcode’);
remove_all_filters (‘wp_audio_shortcode_class’);
if ( ” !== $masonry_tile_background_color ) {
ET_Builder_Element::set_style( $function_name, array(
‘selector’ => ‘%%order_class%%.et_pb_blog_grid .et_pb_post’,
‘declaration’ => sprintf(
‘background-color: %1$s;’,
esc_html( $masonry_tile_background_color )
),
));
}
if ( ” !== $overlay_icon_color ) {
ET_Builder_Element::set_style( $function_name, array(
‘selector’ => ‘%%order_class%% .et_overlay:before’,
‘declaration’ => sprintf(
‘color: %1$s !important;’,
esc_html( $overlay_icon_color )
),
));
}
if ( ” !== $hover_overlay_color ) {
ET_Builder_Element::set_style( $function_name, array(
‘selector’ => ‘%%order_class%% .et_overlay’,
‘declaration’ => sprintf(
‘background-color: %1$s;’,
esc_html( $hover_overlay_color )
),
));
}
if ( ‘on’ === $use_overlay ) {
$data_icon = ” !== $hover_icon
? Sprintf (
‘Data-icon = “%1 $ s”,
esc_attr( et_pb_process_font_icon( $hover_icon ) )
)
: ”;
$ Overlay_utput = Sprintf (
‘ ‘,
( ” !== $hover_icon ? ‘ et_pb_inline_icon’ : ” ),
$ data_icon
);
}
$overlay_class = ‘on’ === $use_overlay ? ‘et_pb_has_overlay’: ”;
if ( ‘on’ !== $fullwidth ){
if ( ‘on’ === $use_dropshadow ) {
$module_class .= ‘ et_pb_blog_grid_dropshadow’;
}
wp_enqueue_script( ‘salvattore’ );
$background_layout = ‘light’;
}
$args = array( ‘posts_per_page’ => (int) $posts_number );
$et_paged = is_front_page() ? get_query_var (‘sayfa’): get_query_var (‘sayfa’);
if ( is_front_page() ) {
$paged = $et_paged;
}
if ( ” !== $include_categories )
$args[‘cat’] = $include_categories;
if (! Is_search ()) {$ args [‘sayfa’] = $ et_paged;
}
if (”! == $ offset_number &&! boş ($ offset_number)) {
/**
* Ofset + Pagination iyi oynamayın. Manuel ofset hesaplaması gerekli
* @see: https://codex.wordpress.org/making_custom_queries_using_offset_and_pagination
*/
eğer ($ Paged> 1) {
$ args [‘ofset’] = (($ et_paged – 1) * intVal ($ post_number)) + intVal ($ offset_number);
} başka {
$ args [‘ofset’] = aralık ($ ofset_number);
}
}
if (is_single () &&! isset ($ args [‘post__not_in’]))))))) {
$ args [‘post__not_in’] = array (get_the_id ());
}
Ob_start ();
Query_posts ($ args);
if (had_posts ()) {
if (‘kapalı’ === $ fullwidth) {
echo ‘
‘;
}
while (had_posts ()) {
Posta ();
$ post_format = et_pb_post_format ();
$ thumb = ”;
$ width = ‘on’ === $ FullWidth? 1080: 400;
$ width = (int) Appl_filters (‘et_pb_blog_image_width’, $ genişlik);
$ Height = ‘açık’ === $ FullWidth? 675: 250;
$ Height = (int) Appl_filters (‘et_pb_blog_image_height’, $ yükseklik);
$ CLASSTEXT = ‘açık’ === $ FullWidth? ‘et_pb_post_main_image’: ”;
$ titletext = get_the_title ();
$ thumbnail = get_thumbnail ($ width, $ yükseklik, $ classtext, $ titlext, $ titlext, false, ‘blogImage’);
$ thumb = $ thumbnail [“başparmak”];
$ no_thumb_class = ” === $ başparmak || ‘Kapalı’ === $ show_thumbnail? ‘et_pb_no_thumb’: ”;
if (in_array ($ post_format, dizi (‘video’, ‘galeri’))))) {
$ no_thumb_class = ”;
}?>
<makale id = "post- ” >
>>

‘,
$ başparmak
): ”;
printf (

%1 $ s
%2 $ s
‘,
$ video_overlay,
$ first_video
);
elseif (‘galeri’ === $ Post_format):
et_pb_gallery_images (‘kaydırıcı’);
elseif (”! == $ başparmak && ‘açık’ === $ show_thumbnail):
if (‘on’! == $ fullwidth) echo ‘
‘; ?>
<a href="<?php Esc_url( the_permalink());?


<? Php
if ('on'! == $ fullwidth) echo ' ‘;
Endif;
}?>

<a href=" “>

<? Php
if ('on' === $ show_author || 'on' === $ show_date || 'on' === $ show_categories || 'on' === $ show_comments) {printf ('
%1 $ s %2 $ s %3 $ s %4 $ s %5 $ s %6 $ s 7 $ s
',
(
'Açık' === $ show_author
? ET_GET_SAFE_LOCALIGING (sprintf (__ (' %s', 'et_builder'), ''. et_pb_get_the_author_posts_link ().
: ''
),
(
('açık' === $ show_author && 'açık' === $ show_date)
? '| '
: ''
),
(
'Açık' === $ show_date
? ET_GET_SAFE_LOCALIGING (sprintf (__ ('%s', 'et_builder'), ''. ESC_HTML (get_the_date ($ meta_date)). '')
: ''
),
(
('Açık' === $ show_author || 'on' === $ show_date) && 'açık' === $ show_categories)
? '| '
: ''
),
(
'açık' === $ show_categories
? get_the_category_list (',')
: ''
),
(
('On' === $ show_author || 'on' === $ show_date || 'on' === $ show_categories) && 'açık' === $ show_comments))
? '| '
: ''
),
(
'Açık' === $ show_comments
? sprintf (ESC_html (_nx ('%s yorum', '%s yorum', get_comments_number (), 'yorum sayısı', 'et_builder'), number_format_i18n (get_comments_number ())
: ''
)
);
}
echo '
';
Global $ et_pb_rendering_column_content;
$ post_content = et_strip_shortcodes (et_delete_post_first_video (get_the_content ()), true);
$ et_pb_rendering_column_content = true;
if ('açık' === $ show_content) {
Global $ more;
// Page Builder daha fazla etiketi desteklemiyor, bu nedenle sayfa oluşturucu ile yapılan yayın durumunda the_content () görüntüleyin
if (et_pb_is_pageBuilder_used (get_the_id ())) {
$ More = 1;
Echo appling_filters ('the_content', $ post_content);
} başka {
$ more = null;
Echo appling_filters ('the_concent', et_delete_post_first_video (get_the_content (esc_html __ ('daha fazla …', 'et_builder'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) ))))))))
}
} başka {
if (has_excerpt ()) {
The_excerpt ();
} başka {
echo wpautop (et_delete_post_firsst_video (strip_shortcodes (truncate_post (270, false, '', true))));
}
}
$ et_pb_rendering_column_content = false;
if ('açık'! == $ show_content) {
$ More = 'açık' == $ show_more? Sprintf ('%2 $ s ‘, esc_url (get_permalink ()), esc_html __ (‘daha fazla oku’, ‘et_builder)) ): ”;
echo $ more;
}
echo ”;
?>

<? Php
} // Son zaman
if ('kapalı' === $ fullwidth) {
echo '
‘;
}
if (‘açık’ === $ show_paination &&! Is_search ()) {
if (function_exists (‘wp_pagenavi’))) {
wp_pagenavi ();
} başka {
if (et_is_builder_plugin_active ()) {
Insluor (ET_BUILDER_PLUGIN_DIR.
} başka {
get_template_part (‘içerir/navigasyon’, ‘dizin’);
}
}
echo ‘
‘;
$ container_is_closed = true;
}
} başka {
if (et_is_builder_plugin_active ()) {
Insluor (et_builder_plugin_dir.
} başka {
get_template_part (‘/rezervler dahil’, ‘dizin’ dahil);
}
}
wp_reset_query ();
$ post = ob_get_contents ();
ob_end_clean ();
$ class = “et_pb_module et_pb_bg_layout _ {$ background_layout}”;
$ output = sprintf (


%2 $ s
%4 $ s ‘,
(‘on’ === $ tamWidth?
$ gönderiler,
ESC_ATTR ($ sınıf),
(! $ container_is_closed?
(”!
(”!
);
if (‘açık’! == $ fullwidth)
$ output = sprintf (‘
%1 $ s ‘, $ output);
// $ wp_filter geri yükleme
$ wp_filter = $ wp_filter_cache;
Unset ($ wp_filter_cache);
$ Çıktı döndür;
}
}
Teklifin uzunluğunu gösteren aşağıdaki kod satırlarını bulun:
echo wpautop (et_delete_post_firsst_video (strip_shortcodes (truncate_post (270, false, ”, true))));
“270” numarasının değerine dikkat edin. Bu, teklifinizin uzunluğu için izin verilen mevcut karakterlerin sayısıdır. Daha uzun bir teklif istiyorsanız, “270” numarasını “470” gibi daha büyük bir sayı ile değiştirin. Yeni kod satırı şöyle görünecek: echo wpautop (et_delete_post_firsst_video (struncate_post (470, false, ”, true))));
Şimdi cmb.php dosyanız yerine geldikten sonra, çocuğunuzun tema klasörüne dönün ve “functions.php” adlı yeni bir dosya ekleyin.
Functions.php dosyasını açın ve aşağıdaki kodu girin: <? PHP
//*============================================ =
// Özel modülü alt temaya yükleme
// =========================================
Divi_module_loading () işlevi {
if (! class_exists ('et_builder_module'))))) {
dönüş;
}
Yeni Function.php dosyası yerine, yeni bir teklif eklenmesini görmek için blog sayfanızı kontrol edin.
Bu değişiklik ızgaranın düzenini ve blog modülünün tam genişliğini etkileyecektir. Divi Blog Gönderiniz için Manuel Tırnaklar Giriş Bazen içeriği ve uzunluğu tam olarak istediğiniz gibi sağlamak için bir gönderi için teklifinizi tamamen ayarlamanız gerekir. Bunu Divi ile yapmak kolaydır. İlk olarak, bir teklif kullanımını etkinleştirmeniz gerekir. Divi → Tema seçeneği ve genel ayarların altında, "Belirtildiğinde Alıntı Kullan" ı etkinleştirmek için tıklayın.
Değişiklikleri Kaydet Gönderinizi düzenlerken, WYSIWYG metin düzenleyicisinin altındaki alıntı metin kutusunu bulun. Metin kutusuna özel bir teklif girin.
Alıntı metin kutusuna girdiğiniz içerik ne olursa olsun (ne kadar süre olursa olsun) belirli bir yazı için teklif olarak görüntülenir. Son Zihin Alıntı uzunluğunu değiştirmek için birkaç neden vardır. Nedeni saf estetik veya belki de içerik stratejinizi geliştirmenin bir yolu olabilir. Divi blog modülü, standart blog sayfası veya manuel teklif kullanın, umarım bu öğretici blog içeriğinizi daha iyi kontrol etmenize yardımcı olacaktır.
Yorumlarda sizden haber almayı umuyorum. Zevk almak!