Back to Question Center
0

Zan iya amfani da hotunan al'ada a cikin taken wordpress (ba na tawa ba)? - Semalt

1 answers:
. com).

Ina ƙoƙarin aika manyan hotuna ta bin bin koyo a kasa->

kan yadda ake amfani da hotunan alafter_setup_theme', 'saitin'); saitin aikin

{// add_theme_support (BBC', 600, 200, gaskiya); // hoton kai tsaye add_image_size (image_size_names_choose', 'custom_image_sizes_choose'); aiki custom_image_sizes_choose ($ masu girma) {$ custom_sizes = tashar ('imaged-image' => 'Hoton Hotuna');dawo array_merge ($ masu girma, $ custom_sizes); }):da_post_thumbnail (aji' => 'siffar hoto')); Ƙarshe; ?>add_action ('wp_enqueue_scripts', 'comicpress_enqueue_theme_scripts'); add_action ('widgets_init', 'comicpress_register_sidebars'); add_filter ('maɓallin nisa', 'comicpress_excerpt_length'); idan (comicpress_themeinfo (comicpress-page-foot', 'comicpress_debug_page_foot_code'); add_filter ('excerpt_more', 'comicpress_auto_excerpt_more'); idan (comicpress_themeinfo (shutdown_action_hook', 'comicpress_close_up_shop'); idan (comicpress_themeinfo (hoto na biyu'); }// Wadannan kayan aiki gwagwarmaya (duniya (get_template_directory
. ayyuka /'. basename ($ funcfile, '. php ')); }// Load duk widget din. gwagwarmaya (duniya (get_template_directory
. widgets /'. basename ($ widgefile, '. php ')); }aiki comicpress_setup
{load_theme_textdomain ('comicpress', get_template_directory
. '/ lang'); // add_editor_style
;add_theme_support (post-formats',jeri ( // 'image', // 'bidiyo', // 'gogewa', // woocommerce'); // PMH }aiki comicpress_enqueue_theme_scripts
{duniya $ is_IE, $ wp_styles;idan (is_singular
&& comments_open
&& get_option (themetricks_historic2', get_template_directory_uri
. '/ js / nan take. js ', null, null, gaskiya);}} }aiki comicpress_init
{add_action ('pre_get_posts', 'comicpress_pre_parser', 1, 1); }aiki comicpress_pre_parser ($ query) {idan ($ query-> is_home
&& $ query-> is_main_query
) { // $ query-> saita (nopaging', gaskiya);} }idan (! function_exists (suna' => $ widget_info ['suna'],'id' => 'sidebar-'. sanitize_title ($ widget_info ['id')),'bayanin' => $ widget_info ["bayanin"],'before_widget' => "
\ r \ n
\ r \ n ",'bayan_widget' => "
\ r \ n
\ r \ n
\ r \ n",'before_title' => "

",'after_title' => " \ r \ n"));}} }aiki comicpress_get_sidebar ($ location = "labarun gefe' '. $ wuri); ?>

{duniya $ wp_query;idan (strpos ($ _SERVER ['SCRIPT_NAME'], 'Wp-sa hannu. php ') || strpos ($ _SERVER ['SCRIPT_NAME'], 'wp-kunna. php ')) dawo gaskiya;dawo da ƙarya; }aiki comicpress_debug_page_foot_code
{?>

?> Tambayoyi. Amfani da ƙwaƙwalwa. ?> seconds.

';$ fitarwa. = '
'. "\ r \ n";Kashe $ fitarwa;} }/ *** Wannan aikin ceo_clean_filename** @param string $ filename da BASE filename* @return kirtani ya sake dawo da sunan filayen rawurlencoded tare da% 2F sa a /* / aiki comicpress_clean_filename ($ filename) {dawo str_replace ("% 2F", "/", rawurlencode ($ filename)); }aiki comicpress_infinite_scroll_loop
{yayin da (have_posts
): the_post
;comicpress_display_post
;a halin yanzu; }/ *** Sakamakon aikin saitunan tsoho* / aiki comicpress_load_options
{$ comicpress_options = get_option ('Cp-zažužžukan');idan (komai ($ comicpress_options)) {gwagwarmaya (tsararru (// Janar'home_post_count' => '5','disable_blog_on_homepage' => ƙarya,'add_pw_async_code_to_head' => ƙarya,'kan-blog-sidebar-all-posts' => ƙarya,// Shafin Farko na Widget wanda ya tsara bidiyon da girman hotunan cikin posts'content_width' => 500,'content_width_disabled_sidebars' => 700,// Shafuka'disable_page_titles' => ƙarya,// Posts'disable_post_titles' => ƙarya,'enable_post_calendar' => ƙarya,'enable_post_author_gravatar' => ƙarya,'enable_avatar_trick' => gaskiya,'disable_tags_in_posts' => ƙarya,'disable_categories_in_posts' => ƙarya,'disable_author_info_in_posts' => ƙarya,'disable_date_info_in_posts' => ƙarya,'disable_posted_at_time_in_posts' => ƙarya,'enable_last_modified_in_posts' => ƙarya,'Moods_directory' => 'Babu',// Comments'disable_comment_note' => gaskiya,'disable_comment_javascript' => ƙarya,'enable_comments_on_homepage' => ƙarya,'avatar_directory' => 'Babu',// Pagination'enable_numbered_pagination' => gaskiya,// Cutar'disable_footer_text' => ƙarya,'disable_scroll_to_top' => ƙarya,'copyright_name' => '','copyright_url' => '',// RSS'enable_post_thumbnail_rss' => gaskiya,// Amsoshi & Binciken'nuna_archive_as_links' => ƙarya,'excerpt_or_content_in_archive' => 'karin bayani','archive_display_order' => 'DESC',// Menubar'disable_default_menubar' => ƙarya,'enable_search_in_menubar' => ƙarya,'enable_rss_in_menubar' => gaskiya,'disable_jquery_menu_code' => ƙarya,'enable_breadcrumbs' => ƙarya,// Menubar - Gwanayen Yanayi'menubar_social_icons' => ƙarya,'menubar_social_twitter' => '','menubar_social_facebook' => '','menubar_social_googleplus' => '','menubar_social_linkedin' => '','menubar_social_pinterest' => '','menubar_social_youtube' => '','menubar_social_flickr' => '','menubar_social_tumblr' => '','menubar_social_deviantart' => '','menubar_social_myspace' => '','menubar_social_email' => '',// Debug'enable_debug_footer_code' => ƙarya,'force_active_connection_close' => ƙarya,// Jetpack'enable_jetpack_infinite_scrolling' => ƙarya) a matsayin $ filin => $ darajar) {$ comicpress_options [$ filin] = $ darajar;} // update_option ('Cp-options', $ comicpress_options); // Ba za a iya adanawa zuwa asusun ba sai dai idan ka danna maɓallin ajiyewa a cikin zaɓuɓɓuka}dawo $ comicpress_options; }aiki comicpress_themeinfo ($ wandainfo = null) {duniya $ comicpress_themeinfo;idan (komai ($ comicpress_themeinfo) || $ wandainfo == version' => '4. 3 ','Ƙa'idar ƙaddamarwa' => '40');$ comicpress_themeinfo = array_merge ($ comicpress_themeinfo, $ comicpress_addinfo);$ comicpress_themeinfo = array_merge ($ comicpress_themeinfo, $ comicpress_options);}idan ($ waneinfo && $ waneinfo! == "sake saiti")idan (farko ($ comicpress_themeinfo [$ wandainfo]))dawo $ comicpress_themeinfo [$ wandainfo];wasudawo da ƙarya;dawo $ comicpress_themeinfo; }// Dashboard Zaɓuɓɓukan Menu - Sai kawai gudu a cikin wp-admin yankin idan (is_admin
) {@require_once (get_template_directory
. '/ zažužžukan. ',' comicpress '); }

Yanzu na gyara fayiloli kamar yadda yazo kuma zan iya samun damar shiga shafin na, amma ina mamaki dalilin da ya sa na samu irin wannan kuskure, saboda wasu batutuwa a cikin haɗin ko kuma saboda ina cikin jigon farko, don haka sai na zai tambayi:

Zan iya siffanta batun wani abu gaba daya kuma gyara fayiloli don amfani da hotunan al'ada?

February 5, 2018

kuskuren kuskure: ƙaddamar da kuskure, rashin '' 'in / membri / thekrumbs / wp-content / themes / comicpress / ayyuka. php a kan layi 40

  ):da_post_thumbnail (aji' => 'siffar hoto'));
Ƙarshe;
?> 

Kuna da mahimman code na PHP, watau. ?> , wanda aka sanya a ciki a cikin maɓallin code na PHP. Wannan lambar ta dubi wurin nan.

Ee, zaka iya yin duk abin da kake so da taken da kake da shi. Ka saya shi (ko kuma kyauta).

Muddin ka sayi shi ko kuma idan yana da kyauta, zaka iya yin kowane abu. Kawai tabbatar da cewa kayi jigon jariri a cikin taken. (akwai koyaswa akan wannan a kan al'umma mai mahimmanci)

Wancan ne saboda idan kun (a misalinku) gyara ayyuka. php ba tare da yin batun yaro ba, lokacin da ka sabunta wannan taken, fayil ɗinka za a sake rubutawa.

Zan iya amfani da hotunan al'ada a cikin taken wordpress (ba na tawa ba)? - Semalt
Reply