Hi yelidric,
How to insert custom texts to my theme? Customizer, theme options page or only with html as static text?
I’m not quite sure what you’re asking. Can you give an example?
If you’re looking to put a copyright line in a theme, for instance, it would depend on exactly how the theme is constructed, but in most cases, I’d be looking to add something like that to the template that controls the footer (most often: footer.php).
Can you give an example?
Sorry, I forget to example:
So I have custom homepage with same custom text like a services. How can I put the services into my front-page template when I build custom theme for client? I have use static html, theme options page, customizer or another way?
I hope you understood me. 😀
Hey yelidric,
So I have custom homepage with same custom text like a services. How can I put the services into my front-page template when I build custom theme for client? I have use static html, theme options page, customizer or another way?
If you’re trying to add custom text to the home page, you have a few options:
- Add the text and, if needed, HTML markup to the WordPress editor for the home page
- Create/edit the theme template that is used to display the home page, according to the WordPress Template Hierarchy. Depending on your site settings, it’s likely a front-page.php file, if you’ve set a static front page. You can add any markup and text you like to this template – just know that, since it’s in a template, rather than the WP editor, it’s much harder for your customer to change. Creating Static Front Page
- Use widgets, if your theme contains widget areas that are specific to your home page. You can manipulate these through the Customizer, plus you have control over where widget areas are embedded within your theme. Widgetizing Your Theme
Of these options, my choice would depend on the application, but would likely be either #1 or #3, in most cases.
I hope that helps. Holler if you have more questions.
Create/edit the theme template that is used to display the home page, according to the WordPress Template Hierarchy. Depending on your site settings, it’s likely a front-page.php file, if you’ve set a static front page. You can add any markup and text you like to this template – just know that, since it’s in a template, rather than the WP editor, it’s much harder for your customer to change. Creating Static Front Page
And what if I use theme options or customizer for adding text?
How do you solve this problem for your customer? If I ask. 🙂
And what if I use theme options or customizer for adding text?
I think you’d need to add widget areas to use the Customizer to change content within the page (aside from Title and Description).
How do you solve this problem for your customer? If I ask. 🙂
Depends on their needs and the needs of the site. Sometime widgets, sometimes special templates, and sometimes custom fields and custom templates together.
I hope that helps.