Welche Dateien im Child werden ausgeführt?
-
Hallo zusammen
Ich habe eine grundsätzliche Frage zur Verarbeitung der Dateien in einem Child-Theme.
Ist es nicht so, dass alle Dateien, welche ich vom Parent ins Child übernehme, im Child ausgeführt werden?
Wenn ich im Child z.B. die 404.php oder die searchform.php verändere, wird das auf der Webseite übernommen.
Nun werden aber diverse Ausgaben auf der Seite in der inc/functions.php erzeugt. ganz am Anfang habe ich nun im Child ein die(“Abbruch”); rein geschrieben. Wenn die Datei also verarbeitet werden würde, musst das die Seite zum Ausfall bringen. Aber läuft alles ganz normal.
Müsste ich da versuchen, die functions.php im Parent zu deregistrieren? Oder die entsprechenden Funktionen im Child in die functions.php ein Verzeichnis höher rein zu schreiben?
Bei all den Anleitungen zum Child finde ich nur Infos wie man ein Solches erstellt.
Falls es doch für Euch relevant ist: Das Theme ist WOWSOME, und der Bericht:
<blockquote>### wp-core ### version: 5.9.3 site_language: de_CH user_language: de_CH timezone: Europe/Zurich permalink: /%year%/%monthnum%/%day%/%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: closed environment_type: production user_count: 1 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/darinch/www/pferde.ch/wordpress wordpress_size: loading... uploads_path: /home/darinch/www/pferde.ch/wordpress/wp-content/uploads uploads_size: loading... themes_path: /home/darinch/www/pferde.ch/wordpress/wp-content/themes themes_size: loading... plugins_path: /home/darinch/www/pferde.ch/wordpress/wp-content/plugins plugins_size: loading... database_size: loading... total_size: loading... ### wp-active-theme ### name: Wowsome Child-Theme (wowsome_child) version: 1.0 author: R.A.D. WebDesign author_website: https://darin.ch parent_theme: Wowsome (wowsome) theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, post-thumbnails, menus, custom-logo, post-formats, custom-background, customize-selective-refresh-widgets, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, custom-header, infinite-scroll, jetpack-responsive-videos, woocommerce, widgets theme_path: /home/darinch/www/pferde.ch/wordpress/wp-content/themes/wowsome_child auto_update: Deaktiviert ### wp-parent-theme ### name: Wowsome (wowsome) version: 1.0.8 author: Theme Horse author_website: https://www.themehorse.com/ theme_path: /home/darinch/www/pferde.ch/wordpress/wp-content/themes/wowsome auto_update: Deaktiviert ### wp-plugins-active (12) ### Akismet Anti-Spam: version: 4.2.3, author: Automattic, Automatische Aktualisierungen deaktiviert Code Snippets: version: 3.1.0, author: Code Snippets Pro, Automatische Aktualisierungen deaktiviert Jetpack: version: 10.9, author: Automattic, Automatische Aktualisierungen deaktiviert Lazy Blocks: version: 2.5.3, author: nK, Automatische Aktualisierungen deaktiviert Real Media Library (Free): version: 4.18.6, author: devowl.io, Automatische Aktualisierungen aktiviert Revision Control: version: 2.3.2, author: Dion Hulse, Automatische Aktualisierungen deaktiviert Shortcodes Ultimate: version: 5.12.0, author: Vladimir Anokhin, Automatische Aktualisierungen deaktiviert Simple History: version: 3.3.0, author: Pär Thernström, Automatische Aktualisierungen deaktiviert WP-Matomo Integration: version: 1.0.27, author: André Bräkling, Automatische Aktualisierungen deaktiviert WP Statistics: version: 13.2.3, author: VeronaLabs, Automatische Aktualisierungen deaktiviert Yoast Duplicate Post: version: 4.4, author: Enrico Battocchi & Team Yoast, Automatische Aktualisierungen deaktiviert YOP Poll: version: 6.4.1, author: yourownprogrammer, Automatische Aktualisierungen deaktiviert ### code-snippets (7) ### snippet-1: name: Make upload filenames lowercase, scope: global, modified: 2022-05-18 05:44:25, tags: [sample, media] snippet-2: name: Disable admin bar, scope: front-end, modified: 2022-05-18 05:44:25, tags: [sample, admin-bar] snippet-3: name: Allow smilies, scope: global, modified: 2022-05-18 05:44:25, tags: [sample] snippet-4: name: Current year, scope: content, modified: 2022-05-18 05:44:25, tags: [sample, dates] snippet-5: name: Weiterlesen Link unterdrücken, scope: front-end, modified: 2022-05-18 05:49:31 snippet-6: name: Adminbereich einfärben, scope: global, modified: 2022-05-18 06:10:11 snippet-7: name: Kategorie alphabetisch sortieren, scope: global, modified: 2022-05-18 07:56:37 ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1692 imagemagick_version: ImageMagick 6.9.12-34 Q16 amd64 2021-12-22 https://imagemagick.org imagick_version: 3.5.1 file_uploads: File uploads is turned off post_max_size: 64M upload_max_filesize: 64M max_effective_size: 64 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 511 GB imagick::RESOURCETYPE_DISK: 9.2233720368548E+18 imagick::RESOURCETYPE_FILE: 1536 imagick::RESOURCETYPE_MAP: 511 GB imagick::RESOURCETYPE_MEMORY: 256 GB imagick::RESOURCETYPE_THREAD: 1 imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HEIC, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X3F, XBM, XC, XCF, XPM, XPS, XV, YCbCr, YCbCrA, YUV gd_version: 2.3.1 gd_formats: GIF, JPEG, PNG, WebP, BMP ghostscript_version: 9.52 ### wp-server ### server_architecture: FreeBSD 12.3-RELEASE-p1 amd64 httpd_software: Apache php_version: 7.4.29 64bit php_sapi: cgi-fcgi max_input_variables: 1000 time_limit: 30 memory_limit: 256M max_input_time: 60 upload_max_filesize: 64M php_post_max_size: 64M curl_version: 7.83.0 OpenSSL/1.1.1o suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: false ### wp-database ### extension: mysqli server_version: 10.3.34-MariaDB-log client_version: mysqlnd 7.4.29 max_allowed_packet: 16777216 max_connections: 400 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/darinch/www/pferde.ch/wordpress/wp-content WP_PLUGIN_DIR: /home/darinch/www/pferde.ch/wordpress/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Nicht definiert DB_CHARSET: utf8mb4 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable ### jetpack ### site_id: 206832035 ssl_cert: No time_diff: undefined version_option: 10.9:1652861369 old_version: 10.9:1652861369 public: Public master_user: #1 darinadmin current_user: #1 darinadmin tokens_set: Blog User blog_token: y$5FR*4bx*egZg&X4P6dzf^N&mQXRPk2 user_token: U2q*k2zBzO3p)@5T@liIqGR$i)b$ZTZM version: 10.9 jp_plugin_dir: /home/darinch/www/pferde.ch/wordpress/wp-content/plugins/jetpack/ plan: free protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false} full_sync: {"started":"Wed, 18 May 2022 08:19:41 +0000","finished":"Wed, 18 May 2022 08:19:46 +0000","progress":{"comments":{"total":"1","sent":1,"finished":true,"last_sent":"1"},"constants":{"finished":true},"functions":{"finished":true},"options":{"finished":true},"posts":{"total":"50","sent":50,"finished":true,"last_sent":"2"},"term_relationships":{"total":"13","sent":13,"finished":true,"last_sent":{"object_id":"26","term_taxonomy_id":"2"}},"terms":{"total":"6","sent":6,"finished":true,"last_sent":"1"},"themes":{"finished":true},"updates":{"finished":true},"users":{"total":"1","sent":1,"finished":true,"last_sent":"1"}},"config":{"comments":1,"constants":1,"functions":1,"options":1,"posts":1,"term_relationships":1,"terms":1,"themes":1,"updates":1,"users":1}} sync_size: undefined sync_lag: 0 seconds full_sync_size: undefined full_sync_lag: 0 seconds idc_urls: {"home":"https:\/\/www.pferde.ch","siteurl":"https:\/\/www.pferde.ch","WP_HOME":"","WP_SITEURL":""} idc_error_option: false idc_optin: true cxn_tests: All Pass.</blockquote>
Gruß René
Die Seite, für die ich Hilfe brauche: [Anmelden, um den Link zu sehen]
- Das Thema „Welche Dateien im Child werden ausgeführt?“ ist für neue Antworten geschlossen.