Skip to main content

in my theme, I need to display either "in stock" or "out of stock" in detail page. itsit's shown by default. I needed to display it right after the title. in one line. I moved in stock inside title block. but the problem is, There is a <h1> tag inside the title.phtml file and I need in stock to be <span> inside that <h1> `'. I cantcan't move further in xmlXML. CantCan't edit title.phtml to put span because when I do, it will affect for the every title instances inside my project.

How can I put a span inside h1 tag and instruct it to only display when on ata product view?

in my theme, I need to display either "in stock" or "out of stock" in detail page. its shown by default. I needed to display it right after the title. in one line. I moved in stock inside title block. but the problem is, There is a <h1> tag inside title.phtml file and I need in stock to be <span> inside that <h1> . I cant move further in xml. Cant edit title.phtml to put span because when I do, it will affect for the every title instances inside my project.

How can I put span inside h1 tag and instruct it to only display when on at product view?

in my theme, I need to display either "in stock" or "out of stock" in detail page. it's shown by default. I needed to display it right after the title. in one line. I moved in stock inside title block. but the problem is, There is a <h1> tag inside the title.phtml file and I need in stock to be <span> inside that `'. I can't move further in XML. Can't edit title.phtml to put span because when I do, it will affect for the every title instances inside my project.

How can I put a span inside h1 tag and instruct it to only display when on a product view?

Source Link
Joey
  • 591
  • 1
  • 9
  • 31

Move in stock/out of stock inline with title

in my theme, I need to display either "in stock" or "out of stock" in detail page. its shown by default. I needed to display it right after the title. in one line. I moved in stock inside title block. but the problem is, There is a <h1> tag inside title.phtml file and I need in stock to be <span> inside that <h1> . I cant move further in xml. Cant edit title.phtml to put span because when I do, it will affect for the every title instances inside my project.

How can I put span inside h1 tag and instruct it to only display when on at product view?