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 al'ada a cikin jigo

Tsararraki ba daidai ba ne, tun da na ƙwace lambar kuma ina samun haka:

kuskuren kuskure: ƙayyade kuskure, rashin '' 'in/ membri / thekrumbs / wp-abun ciki / jigogi / comicpress / ayyuka - logo design companies. php a layi40

Na kwafa / pasted lambar da ke ƙasa, kamar yadda na gyara shi a cikin ayyuka. php fayil (duba ɓangaren farko) ->

       {// add_theme_support ('bayanan takaitaccen'); // Wannan yanayin yana bada goyon bayan post-thumbnail don jigo// Don kunna kawai ga posts:// add_theme_support ('post-takaitaccen siffofi', jeri ('post'));// Don ba da dama ga posts da al'ada iri-iri:// add_theme_support ('bayanan takaitacciyar hoto', jeri ('post', 'fim'));// Yi rijistar sabon girman hoton. // Wannan yana nufin cewa WordPress za ta ƙirƙiri kwafin hoton hoton tare da ƙayyadaddun ƙimar// lokacin da ka sauke sabon hoton. Yi rijista kamar yadda ake bukata. // Ƙara manyan siffofin al'ada (suna, nisa, tsawo, amfanin gona)add_image_size ('imaged-image', 620, 200, gaskiya);add_image_size ('BBC', 600, 200, gaskiya); // hoton kai tsaye
add_image_size ('size-size1', 400, 200); // 400 pixel fadi da 200 padd_image_size ('size-size2', 400, 200, gaskiya); // 400 pixel fadi da 200 pixel tsawo, cropped// }add_filter ('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 ('hoto-hoto', tsararren ('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 ('enable_debug_footer_code'))add_action ('comicpress-page-foot', 'comicpress_debug_page_foot_code');
add_filter ('excerpt_more', 'comicpress_auto_excerpt_more');
idan (comicpress_themeinfo ('force_active_connection_close'))add_action ('shutdown_action_hook', 'comicpress_close_up_shop');
idan (comicpress_themeinfo ('menubar_social_icons'))add_action ('comicpress-menubar-menunav', 'comicpress_display_social_icons');idan (! is_admin  
)add_action ('init', 'comicpress_init');idan (class_exists ('MultiPostThumbnails')) {sabon MultiPostThumbnails (jeri ('lakabi' = '' Secondary Image ','id' => 'second-image','post_type' => 'comic'));add_image_size ('hoto na biyu'); }// Wadannan kayan aiki gwagwarmaya (duniya (get_template_directory
. '/ ayyuka / *. php ') a matsayin $ funcfile) {get_template_part ('ayyuka /'. basename ($ funcfile, '. php ')); }// Load duk widget din. gwagwarmaya (duniya (get_template_directory
. '/ widgets / *. php ') kamar $ widgefile) {get_template_part ('widgets /'. basename ($ widgefile, '. php ')); }aiki comicpress_setup
{load_theme_textdomain ('comicpress', get_template_directory
. '/ lang'); // add_editor_style
;add_theme_support ('' atomatik-links ');add_theme_support ('post-formats',jeri ( // 'image', // 'bidiyo', // 'gogewa', // 'matsayi','mahada','baya'));rajista_nav_menus (tsararru ('Primary' => __ ('Primary', 'comicpress'),'Hanya' => __ ('Hanya', 'comicpress')));add_theme_support ('custom-background');add_theme_support ('bayanan takaitaccen');add_theme_support ('title-tag');add_theme_support ('woocommerce'); // PMH }aiki comicpress_enqueue_theme_scripts
{duniya $ is_IE, $ wp_styles;idan (is_singular
&& comments_open
&& get_option ('thread_comments') && comicpress_themeinfo ('disable_comment_javascript')) wp_enqueue_script ('comment-reply');idan (! is_admin
) {wp_enqueue_script ('jquery');idan (! comicpress_themeinfo ('disable_jquery_menu_code')) {wp_enqueue_script ('ddsmoothmenu_js', get_template_directory_uri
. '/ js / ddsmoothmenu. js ');wp_enqueue_script ('menubar_js', get_template_directory_uri
. js ');}idan (! comicpress_themeinfo ('disable_scroll_to_top')) {wp_enqueue_script ('comicpress_scroll', get_template_directory_uri
. '/ js / gungura. js ', null, null, gaskiya);}idan (comicpress_themeinfo ('enable_avatar_trick') &&! $ is_IE} {wp_enqueue_script ('themetricks_historic1', get_template_directory_uri
. '/ js / cvi_text_lib. js ', null, null, gaskiya);wp_enqueue_script ('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 ('category__in', '8');$ query-> saita ('posts_per_page', comicpress_themeinfo ('home_post_count'));}Idan (($ query-> is_archive
|| $ query-> is_search
|| is_post_type_archive
) &&! $ query-> is_feed
&& $ query-> is_main_query
) {$ archive_display_order = comicpress_themeinfo ('archive_display_order');idan (komai ($ archive_display_order)) $ archive_display_order = 'desc';$ query-> saita ('tsari', $ archive_display_order);}idan ($ query-> is_author
&& $ query-> is_main_query
) {$ query-> saita ('nopaging', gaskiya);} }idan (! function_exists ('comicpress_register_sidebars')) {aiki comicpress_register_sidebars
{$ widgets_list = madauri (('id' => 'gefen hagu', 'suna' => __ ('Hagu Hagu', 'comicpress'), 'bayanin' => __ ('Labarun gefe da ke gefen hagu na abun ciki. ',' comicpress ')),('id' => 'gefen dama', 'sunan' => __ ('Yankin dama', 'comicpress'), 'bayanin' => __ ('Labarun gefe da ya nuna dama ga abun ciki . ',' comicpress ')),('id' => 'menubar', 'name' => __ ('Menubar', 'comicpress'), 'description' => __ ('Wannan labarun gefe yana ƙarƙashin kai da kuma sama da ɓoyayyen abun ciki', 'comicpress')),('id' => 'over-blog', 'sunan' => __ ('Over Blog', 'comicpress'), 'description' => __ ('Wannan labarun gefe ya bayyana a cikin blog a cikin'. narrowocolumn ',' comicpress ')),('id' => 'footer', 'sunan' => __ ('Footer', 'comicpress'), 'description' => __ ('Wannan labarun gefe yana a kasan shafin kuma yana tsakiyar cibiyar 3 gefen sidebar. ',' comicpress ')),('id' => 'footer-left', 'sunan' => __ ('Hagu Hagu', 'comicpress'), 'bayanin' => __ ('Wannan labarun gefen gefen shafi, hagu daya. ',' comicpress ')),('id' => 'footer-right', 'sunan' => __ ('Hanya dama', 'comicpress'), 'bayanin' => __ ('Wannan labarun gefen gefen shafin, dama daya. ',' comicpress ')),);idan (class_exists ('Jetpack') && Jetpack :: init
-> is_module_active ('minileven')) {$ widgets_list [] = madadin ('id' => '1', 'sunan' => __ ('Jetpack Mobile Sidebar', 'comicpress'), 'description' => __ ('Jetpack Mobile Sidebar', 'comicpress' ));}ƙaddamarwa ($ widgets_list kamar $ widget_info) {register_sidebar (tsararru ('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 = "') {idan (komai ($ location)) dawowa;idan (file_exists (get_template_directory
. '/ labarun gefe-'. '. php ') || fayil_exists (get_stylesheet_directory
. '/ labarun gefe-'. $ wuri. '. php ')) {get_sidebar ($ wuri);} otherif (is_active_sidebar ('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 == 'sake saiti') {$ comicpress_themeinfo = tsararren
;$ comicpress_options = comicpress_load_options
;$ comicpress_addinfo = tsararren ('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 ('hoto-hoto', tsararren ('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.