Custom Theme Creation

4.19K viewsCore
0

I am trying to create a custom theme based upon the following instructions in a previous answer on this website:

Create a anspress folder in your current active theme, and now copy index.php from AnsPress default theme to your newly created anspress folder.
Now edit index.php to match with your theme, done!

My currently active WordPress theme is Twenty Fourteen. I have added an anspress directory and copied over the index.php folder from the anspress plugin. I have adjusted it to match with my theme but it isn’t showing up in the anspress > options > themes section (in the /admin.php?page=anspress_options location). Is there something specific I should be adding in to the index.php file so this is recognised?

1

No it will not shown in theme list, but your newly created index.php will override default/index.php. AnsPress will give priority to override files in your theme folder.

For new theme name to appear in options, you have to create a new folder in

wp-contents/plugins/anspress-question-answer/theme/MY_NEW_THEME/

Thanks for responding so quickly. That make senses and is now working as expected. The plugin is great by the way.

I have one final question, I hope you don’t mind me asking.

I want to change the default post title text on the ‘Ask a Question’ section from ‘Question in one sentence’ to something else. I know I can edit the ask.php file (which I have placed in my newly created ‘anspress’ directory) but I am struggling to find where the part is that it is referencing. Apologies if this is a bit of a n00b question.