# Duplicate class from foundation to new.css

**URL:** https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468
**Category:** Beginners
**Created:** [August 25, 2020, 5:19pm UTC](https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468 "2020-08-25T17:19:17Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 25, 2020, 5:19pm UTC](https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468/1 "2020-08-25T17:19:17Z")

</div>

My PG visual panels say that I can duplicate classes from foundation css to new.css. I’ve tried clicking duplicate on foundation .top-bar url but nothing happens. I tried other visual panel menus and get flyouts. Eventually I give up, open new.css, then type in the code.

 ![Screen Shot 2020-08-25 at 10.11.22 AM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/7/78dae5588c62fed168dd7f92baa717308ea6647c.png) ![Screen Shot 2020-08-25 at 10.10.31 AM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/a/aa57684d584c451edc78f9457abc9c5ed8516952.png) ![Screen Shot 2020-08-25 at 10.08.42 AM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/d9a9a72edf2674f2a080eb0005bdfec35d32f75c.png) ![Screen Shot 2020-08-25 at 10.06.45 AM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/1/12a17d78c46ff8737fe4fd4892c578688245db67.png) ![Screen Shot 2020-08-24 at 5.22.06 PM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/8/8e672febc07f7c286fe82ecd3c7d3430fba2ef96.png)

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [August 25, 2020, 6:22pm UTC](https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468/2 "2020-08-25T18:22:56Z")

</div>

@kat, you should be able to duplicate it. Once you select where to duplicate the rule (new.css) you need to click on the duplicate again. Tried uploading a vid, but something is hiccuping.

---

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 25, 2020, 9:18pm UTC](https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468/3 "2020-08-25T21:18:46Z")

</div>

Couldn’t get movie under 10mg. But I was able to dup foundation in new.css.

1. right click Foundation style, **release right mouse click**
2. Click right side of drop down and choose new.css
3. This seems to be the secret: Click directly on the word Duplicate  
Unfortunately this doesn’t affect the light grey background behind the nav bar.  
Possibly I have too many scripts in the wrong order? Or that this top element is a component. I watched your component tutorial this morning. ![Screen Shot 2020-08-25 at 2.31.31 PM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/5/52b9af071d90431665dfc797cdbaa624f803118e.png)

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [August 26, 2020, 10:05am UTC](https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468/4 "2020-08-26T10:05:15Z")

</div>

Sorry @kat , not sure I can figure this out without a little more information. I’m not sure what you are trying to accomplish and what is or is not working.  
Right now the rule copies over, but isn’t applied?  
You are loading both “new.css” and “foundation.min.css” it looks like, which is being loaded first?  
The highlighted rule is the one you are copying? it looks to be in a media query - is that having impact?

---

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 26, 2020, 4:02pm UTC](https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468/5 "2020-08-26T16:02:25Z")

</div>

Wrong order?  
CSS  
`<link rel="stylesheet" href="css/foundation.min.css"> <link href="../new.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Andika&display=swap"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.6.3/css/foundation.min.css"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.1/css/all.css"> </head>`  
JS  
`</footer> <script src="js/vendor/jquery.js"></script> <script src="js/foundation.js"></script> <script> $(document).foundation(); </script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.6.3/js/foundation.min.js"></script> <script type="text/javascript" src="https://use.fontawesome.com/releases/v5.13.1/js/all.js"></script> </body>`  
Finally did it, but no idea how. I just kept clicking until something worked, then edited to red in new.css. I need a “where to click what, when” - onward ; )

 ![Screen Shot 2020-08-26 at 9.13.11 AM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/9/93f4562ce921228cc26c425345fc2820bb918521.png)

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [August 26, 2020, 6:36pm UTC](https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468/6 "2020-08-26T18:36:18Z")

</div>

Glad it worked for you. The only thing that I can see is thatyou are loading in the foundation.min.css twice. Once before your “new.cs” and once after.

---

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 27, 2020, 12:02am UTC](https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468/7 "2020-08-27T00:02:56Z")

</div>

Foundation should be after new.cs, right?  
Is there a way to access the script section of the page in PG? Prefer to stay in PG instead of editing it in DW CS6

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [August 27, 2020, 10:00am UTC](https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468/8 "2020-08-27T10:00:38Z")

</div>

Whichever sheet loads last is the one that “wins” if the rules have equivalent specificity. If you load your ‘new.css’ before the foundation framework, rules from Foundation might over rule yours.

Scripts can be rearranged in the Tree panel. Just drg them to the position you want. I guess this is what you mean by accessing the script section?

---

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 27, 2020, 4:42pm UTC](https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468/9 "2020-08-27T16:42:24Z")

</div>

Don’t need both foundation.min.js & foundation.js, correct?

> [@RobM](#):
>
> Scripts can be rearranged in the Tree panel.

Nice!  
I’d also like to open the index.html page and access the scripts there. But I get “Can not edit HEAD and BODY elements. Please use Page → Edit code to edit the whole page.” Nothing under Page to allow editing code.

![Screen Shot 2020-08-27 at 9.40.55 AM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/3/39f62aafc8c2a570ff3828a9e03dade1b2e88fb0.png)

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [August 27, 2020, 6:50pm UTC](https://forum.pinegrow.com/t/duplicate-class-from-foundation-to-new-css/4468/10 "2020-08-27T18:50:24Z")

</div>

Correct, typically the non-minimized will be used in development to better track any conflicts/errors. The .min loads quicker for production.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/0/08ea692d17186ea99bfb61ee2985ee3fb12e5364.png)  
If you click the Code icon above the Page View it will open the code editor for the whole page, including the header area.
