Albert

Albert

Posts

  • 深度剖析WordPress主题结构

    2012-07-09 16:01:38 利用强大的技术,可以把基于wordpress的网站做成各种各样的形式,这除了要求wordpress主题开发人员精通html,PHP,JS,CSS等技术,还需要开发者掌握WordPress主题的框架。 Gevin今天结合The anatomy of a WordPress theme这篇文章,和大家一起剖析WordPress主题的结构。原文作者用图文形式,分别从网站外观、页面组成和后台文件三个方面,形象的向大家展示了WordPress的架构,下面Gevin和大家一起分析WordPress是如何架构的。 网站外观 WordPress主题由一系列模板文件组成,每个模板文件控制主题的一部分。无论在博客的哪个个页面上,主题的框架总有一部分是不变的,这是主题的静态部分,它由header.php, sidebar.php 和 footer.php三个文件控制。我们可以修改这些文件,以便检测我们浏览的页面,并显示不同的内容,如在posts页面和page页面显示不同的导航。然而,通常,我们会让静态部分在整个网站上保持一致的风格。 网站外观由下面4个部分的代码控制:...
  • MySQL not support international characters

    Moving a site from one server to another could be a pain. Source server: MySQL...
  • Download URLs

    WordPress https://wordpress.org/latest.zip https://tw.wordpress.org/latest-zh_TW.zip https://tw.wordpress.org/wordpress-4.8.2-zh_TW.zip Themes http://design311.com/wpthemes/download/apostrophe.zip http://downloads.themeisle.com/Parallax-One/latest/Parallax-One.zip https://downloads.wordpress.org/theme/accesspress-parallax.1.53.zip Plugins https://downloads.wordpress.org/plugin/polylang.2.2.3.zip https://downloads.wordpress.org/plugin/wpglobus.zip   5 total views, 1 views...
  • Feature image is repeating on post

    By using the plugin “Featured Image From URL”, after update, the first image is repeated...
  • Apostrophe 2 title font is too big

    file: /wp-content/themes/apostrophe-2/style.css  line:392 h1 { color: silver; font-size: 42px; font-size: 4.2rem; font-weight: 300; line-height: 1.25;...
  • Jetpack conflict with Crelly Slider

    all the sudden, the image slider – Crelly Slider went wrong, the image size shrunk...
  • Move a WordPress site from A to B

    Backup the original site A: all files in the folders under wwwroot MySQL export all...
  • The vent Calendar monthly view tooltip location

    /wp-content/plugins/the-events-calendar/src/views/month/tooltip.php <?php /** * Please see single-event.php in this directory for detailed instructions on how...
  • The events calendar – event title location

    6 total views, 1 views today
  • Top menu code location

    14 total views, 1 views today

70 total views, 4 views today