tdchen
Forum Replies Created
-
Perfectly, bcworkz.
Tnank you, jordesign.
Thank you , threadi.
I think I misunderstood this function.
It is used to refer to custom js libraries, not standard js libraries.
Thank you jordesign.
Did you mean “the way those patterns are set up with the theme” is not mentioned in any documentation?
Good suggestion! threadi.
In fact, to test it, I have created a very simple classic theme, which only has the style.css, index.php and functions.php.
And I don’t know how to test it in a block theme, such as the 2024 theme? how to put head and footer hook in a template?
Thanks.
Thank you bcworkz.
I just made a test for this function. In fact, the jquery was not used at all.
I know it is my problem, but I can’t find the solution.
Thank you threadi.
I have put the following code in functions.php:
function enqueue_jquery() { wp_enqueue_script('jquery', '', array(), false, true); } add_action('wp_enqueue_scripts', 'enqueue_jquery');But the jquery still appeared in head! where I am wrong?
BTW, I am using a classic theme, and have put wp_head() and wp_footer() in the template.
Yes, jordesign.
There are 8 page patterns there including the 4s that are main parts of the 4 replace templates.
But I can’t understand that these are patterns not templates, and where the 4s were assigned to “replace templates”?
Thank you.
Thank you jordesign.
At the “Templates > Pages” position, there is only one template, not four.
You can edit the “Blog home” template, and take the “replace template” action from the setting panel.
You will see four templates that I can’t find where it come from.
And this feature is mentioned at the document of 2024 theme.
Forum: Developing with WordPress
In reply to: How is the replace template feature set in the 2024 theme?Thank you Moderator for your suggestion.
Forum: Fixing WordPress
In reply to: Where are custom menus stored?thank you Kyle
sorry for my late of replying.
you give me the key.
so, if we want to see where the menu is stored, we should look into wp_get_nav_menu_object(). and go deeper.
chenForum: Fixing WordPress
In reply to: Where are custom menus stored?Hi Kyle.
If things like this, how WP print the menu on the page?
It seems too complicated to imaging how the menu is assembled.
chenForum: Fixing WordPress
In reply to: Permalink problem when use aliased directoryI am sure it is caused by the alias setting.
No it, no problem.
Here is my .htaccess:# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress2/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress2/index.php [L]
</IfModule># END WordPress
Forum: Fixing WordPress
In reply to: Permalink problem when use aliased directoryYes, it works.