How to setup single post template for wordpress
First go to single.php page in theme folder.
Now go to page.php and copy banner area html and paste in single.php because page.php display single page and single.php display single post look similar.
So remove default the_title and the_content and add banner area html.
Now use container class from page.php in single.php to display content so add that div like below
and in above div we will display content.
inside above container div write this content ->
and save check.
Now we add metabox in single post
Copy the metabox code from page.php and paste above content in single.php.
And now instead of display blog title i will display author date and category so copy from index.php for that code and paste by replacing title.
like below complete code for metabox
and save.
Comments
Post a Comment