0

I am currently working on designing a website that is centered around video content. I have a section on the home page called Featured Videos that simply has img tags with a YouTube thumbnail inside of them and a p tag underneath with the name relevant to each thumbnail.

On all the other pages I would like to have the featured videos section included as well, is there a way I can make the relevant img link and p tag with the name copy over to all the the other pages?

benbants
  • 590
  • 7
  • 30
  • Do you hardcode the featured videos with html or are you generating the content with another language? There are several ways to include other html files into multiple pages. I found this answer http://stackoverflow.com/a/31845361/2601107 which summarizes the current alternatives well. – michip96 May 22 '17 at 09:25
  • yeah its simply html and some css styling, had a read of the thread you posted. seemed they were more talking about video content. my featured videos section is simply jus thumbnail images so all i need to copy over from the home page is a few url's from the tags? which im guessing can be individually identified by assigning unique ID's to each one – MARCO SEOANE May 22 '17 at 09:27
  • So you should seperate your featured videos into a sperate html file. Afterwards you can include it in multiple files using the – michip96 May 22 '17 at 09:30
  • You can just use same method as on homepage, It's hard to say anything more because of lack of information of the solution used on main page – NoOorZ24 May 22 '17 at 09:31
  • would the method you describe allow me to change how the section is layed out on the other pages though? i have them styled differently in terms of where they are on the page and some sizing. thats why im wondering if theres a way to jus simply access the urls and text content of the names and have them inputted into the tags and

    tags on the other page with different layout.

    – MARCO SEOANE May 22 '17 at 09:33
  • You might include the featured videos file which only contains the img and p tags. Then you can style them differently using css. – michip96 May 22 '17 at 09:37

0 Answers0