The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How do you reuse HTML & JS elements
Chris Dale
post Mar 20 2023, 06:45 AM
Post #1





Group: Members
Posts: 1
Joined: 20-March 23
Member No.: 28,862



Hi all,

I'm trying to build a bootstrap page from a template that has a portfolio section within it that allows you to filter out objects on the page. This all works fine but I would like to add multiple portfolio sections to the same page, each as a separate entity. At the moment I'm stuck with the copied sections affecting each other.

Can I somehow reuse the existing portfolio section again? If so, how do I go about it?


Thanks in advance.

Chris
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 20 2023, 07:19 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



Hello!

QUOTE(Chris Dale @ Mar 20 2023, 12:45 PM) *

At the moment I'm stuck with the copied sections affecting each other.

In what way, the styling or scripting? I'm not familiar with Bootstrap, unfortunately.

QUOTE
Can I somehow reuse the existing portfolio section again? If so, how do I go about it?

Not sure what you mean with "reuse" here. You can certainly show one section at the time using e.g. javascript or iframes (though separate HTML pages would be more robust).

Perhaps there's a conflict between ID values (each one needs to be unique) or some javascript functions/variables. Impossible to tell without seeing the page, could you post a link on the forum?

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 04:39 PM