- news
- 2020.03.15
3焦点眼内レンズ
Improved points in this new version
Parent and Child themes
In order to make the support easier for every sites, we will use a parent / child theme structure.
See : https://www.wpbeginner.com/beginners-guide/wordpress-child-theme-pros-cons/
Make sure the edit the child theme when you need to do some modification, parent theme should never be edited.


WordPress Version
WordPress has been updated to last version at the point of time.
All plugins have also been updated.
Semantic HTML
In order to improve the SEO and the accessibility of the site, make sure to use semantic HTML
For example tags like <main>, <section>, <article>, <nav>, <time> are now used instead of simple <div> tags.
See https://www.w3schools.com/html/html5_semantic_elements.asp
CSS methodologie
In order to unify the CSS way of writing, the BEM methodology has been implement.
CSS adjustments
Useless CSS or outdated CSS (like float etc…) has been removed or updated to more convenient CSS.
Each CSS file will now have a specific role :
- style.css : Shared elements (header, footer, side etc…). This file overwrite the parent theme’s structure.css
- top.css : Top page css
- content.css : Sub pages css and other css
Header menu
For more accessibility of a non-coder user, the header menu now use the wordpress menu.
This menu can be found from the admin panel at : Appearance => Menu (header)
Sitemap menu
Sitemap order are now changeable directly by the user in from the admin panel at : Appearance => Menu (sitemap)
Elementor templates
A few Elementor templates has been imported.
Postbox
Postbox replace newsbox and can now be used with any category.
The shortcode parameters have been changed too, see the php function below ↓function cat_post_list($show_num, $cat_slug, $tit, $day_limit) {
Usage example : 「postbox show_num=5 cat_slug="blog" title="新着情報" 」
Just change the category slug in “cat_slug”
Contact
Checkbox and radio are now usable.
Make sure to use “use_label_element” property when you want to use it those two
Example :
<dl class="clearfix"><dt>症状<span class="required">必須</span></dt><dd>[checkbox* checkbox-symptoms use_label_element "めまい" "頭痛" "嘔吐"]</dd></dl>





