The subtitle from to

Posted in: Newsmag
Post count: 14

Hello, I’ve just bought this theme and I love it. The subtitle field is a good thing for me, but I have noticed it appears as a <p> tag. I would be great if I could have it as a <H2> tag, only on the html side. Do you have any advice of how I could do that? What is the line I should modify in the CSS file?
Thanks a lot for the help you’ll give me

Post count: 14

Sorry but there have been a mistake in the title, and I can’t edit it now. It was meant to be: The subtitle from tag p to tag H2

Post count: 6535

Hi

You need ti edit the file corresponding with post template used and change this tag here: http://screencast.com/t/PoU9hGAquM

Let me know ho it goes.
Thanks!

Post count: 14

Thank you so much Andrei! I’ll try that as soon as possible

Post count: 14

Just a thing: in that screen I see two kinds of file, loop-single.php and single-template.php should I edit both of them? So far I changed the p tag only in the loop-single file and it seems to work. Could I know the difference between these 2 kinds of templates, if possibile of course?

  • This reply was modified 9 years by twoems.
  • This reply was modified 9 years by twoems.
Post count: 6535

Hi

Each post template is built from two files: single-template-x.php and loop-single-x.php. Depending by post template each file have its own role, but as an overall view the single files are the main, they start the single pages and they also end the page, I mean the html for posts. Loop files in most cases prepare the article’s content, the one added in wordpress editor.

Hope this helps!
Thanks!

Post count: 14

Yes, thank you again Andrei

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newsmag’ is closed to new topics and replies.