简体   繁体   中英

How to edit the index page of wordpress theme?

Here's my problem. I want to edit the index page of a wordpress theme. I want to edit the actual page that loads in the browser. When i open inspect element on chrome i get html code but when i go to editor in the admin pannel, at the index.php i have php code. Here's why: I want to edit this webpage cypherbeats.com and instead of that background video i want to but something like this: http://themes.cray.bg/themeswitch/?theme=Storyline%203D%20Slider i know how to develop this carousell but i don't know where to put it on the theme. In admin panel i don't see the html that loads in browser. Any idea?

只需检查header.php文件,即可找到为转数滑块编写的代码,删除该代码,然后将要显示的滑块代码替换为视频

You need to learn how WordPress works. Start with https://codex.wordpress.org/Stepping_Into_Templates

Template files are the building blocks of your WordPress site. They fit together like the pieces of a puzzle to generate the web pages on your site. Some templates (the header and footer template files for example) are used on all the web pages, while others are used only under specific conditions.

and read https://codex.wordpress.org/Theme_Development

WordPress Themes live in subdirectories of the WordPress themes directory (wp-content/themes/ by default) which cannot be directly moved using the wp-config.php file. The Theme's subdirectory holds all of the Theme's stylesheet files, template files, and optional functions file (functions.php), JavaScript files, and images. For example, a Theme named "test" would reside in the directory wp-content/themes/test/. Avoid using numbers for the theme name, as this prevents it from being displayed in the available themes list.

and, for adding Javascript scripts like a slider or carousel to a theme, read https://codex.wordpress.org/Function_Reference/wp_enqueue_script

Or simply use a plugin https://wordpress.org/plugins/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM