Jump to content

Archived

This topic is now archived and is closed to further replies.

alishabird

3D Ribbon in Pagelines DMS

Recommended Posts

alishabird    0
alishabird

Hi, I would like to use a CSS 3D ribbon as section headers on my site. This would be no problem for me in in a wysiwyg html editor but I don't seem to be able to wrap my head around the layer of abstraction using the Drag and Drop DMS. Specifically where do I put the html. I would really appreciate any help.

<div class="ribbon-wrapper">
<div class="ribbon-front">
<!-- ribbon text goes here -->
</div>
<div class="ribbon-edge-topleft"></div>
<div class="ribbon-edge-topright"></div>
<div class="ribbon-edge-bottomleft"></div>
<div class="ribbon-edge-bottomright"></div>
<div class="ribbon-back-left"></div>
<div class="ribbon-back-right"></div>
</div>
 

Note: I am using CSS 3d ribbon generator: http://www.css3d.net/ribbon-generator/#preview

 

Thanks

 

 

 
 

Share this post


Link to post
Share on other sites
rmaxsg    7
rmaxsg

i have test it. i fast one. however you need a bit knowledge  of CSS again.  If you have question please ask?

 

1.You see the HTML And CSS After click on the generate button

 

2.You put HTML in textbox Under DMS Sections  And put CSS in DMS Custom Code Tab

 

3. Is a little out of shape. you have use Firebug to do right adjustment.  (if you have your site live, i can help Rewrite CSS code make it fit nicely on your site)

 

This is image

Before look like this image

 

After Adjustment Using CSS  image

Share this post


Link to post
Share on other sites
alishabird    0
alishabird

Thank you for your offer to help, I'd love it.  I anticipated that it would display as you've shown before the fix. I'm getting something even a little bit different. As you can see I've added the ribbon to "Keynotes and Public Speaking" on http://staging.garympomerantz.com/?page_id=9 

 

Thanks again for helping me out. :-)

Share this post


Link to post
Share on other sites
rmaxsg    7
rmaxsg

End result the image

 

Be sure you find the line in your custom code tab. and Find exact code   .ribbon-back-left {   Change the Whole thing. until you see }

 

.ribbon-back-left {
      
position: absolute;
     
top: -10px;
     
left: -50px;
     
width: 30px;
    
height: 40px;
     background-color: #ccf;
     
z-index: 0;
}

.ribbon-edge-topleft,.ribbon-edge-bottomleft {
     
left: -30px;
    
border-color: transparent #99c transparent transparent;
}
 

Share this post


Link to post
Share on other sites
alishabird    0
alishabird

Thanks again for you're help. I did get it to work, complete css below. And now that it is up I don't love it. lol We'll see if it stays or get tweaked some more.

 

/* ribbon style */
 
.ribbon-wrapper {
    position: relative;
    border-bottom: 0px solid #ccc;
    border-top: 10px solid #ccc;
    -moz-border-bottom-colors: rgba(0, 0, 0, 0.02) rgba(0, 0, 0, 0.04) rgba(0, 0, 0, 0.06) rgba(0, 0, 0, 0.08) rgba(0, 0, 0, 0.10) rgba(0, 0, 0, 0.12) rgba(0, 0, 0, 0.14) rgba(0, 0, 0, 0.16) rgba(0, 0, 0, 0.18) rgba(0, 0, 0, 0.20);
    -webkit-border-bottom-colors: rgba(0, 0, 0, 0.02) rgba(0, 0, 0, 0.04) rgba(0, 0, 0, 0.06) rgba(0, 0, 0, 0.08) rgba(0, 0, 0, 0.10) rgba(0, 0, 0, 0.12) rgba(0, 0, 0, 0.14) rgba(0, 0, 0, 0.16) rgba(0, 0, 0, 0.18) rgba(0, 0, 0, 0.20);
    -moz-border-top-colors: rgba(0, 0, 0, 0.02) rgba(0, 0, 0, 0.04) rgba(0, 0, 0, 0.06) rgba(0, 0, 0, 0.08) rgba(0, 0, 0, 0.10) rgba(0, 0, 0, 0.12) rgba(0, 0, 0, 0.14) rgba(0, 0, 0, 0.16) rgba(0, 0, 0, 0.18) rgba(0, 0, 0, 0.20);
    -webkit-border-top-colors: rgba(0, 0, 0, 0.02) rgba(0, 0, 0, 0.04) rgba(0, 0, 0, 0.06) rgba(0, 0, 0, 0.08) rgba(0, 0, 0, 0.10) rgba(0, 0, 0, 0.12) rgba(0, 0, 0, 0.14) rgba(0, 0, 0, 0.16) rgba(0, 0, 0, 0.18) rgba(0, 0, 0, 0.20);
    width: 300px;
    left: -20px;
}
 
 
.ribbon-front {
    background-color: #ccf; 
    height: 40px;
    width: 310px;
    position: relative;
    left:-10px;
    z-index: 2;
}
 
.ribbon-front h4 {
    margin: 0;
    padding: 5px 5px 0 5px;
    height: 0px;
}
 
.ribbon-front,
.ribbon-back-left,
.ribbon-back-right {
    -moz-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
    -khtml-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
    -webkit-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
    -o-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
}
 
.ribbon-edge-topleft,
.ribbon-edge-topright,
.ribbon-edge-bottomleft,
.ribbon-edge-bottomright {
    position: absolute;
    z-index: 1;
    border-style:solid;
    height:0px;
    width:0px;
}
 
.ribbon-edge-topleft,
.ribbon-edge-topright {
}
 
.ribbon-edge-bottomleft,
.ribbon-edge-bottomright {
    top: 40px;
}
 
.ribbon-edge-topleft,
.ribbon-edge-bottomleft {
    left: -10px;
    border-color: transparent #99c transparent transparent;
}
 
.ribbon-edge-topleft {
    top: -10px;
    border-width: 10px 10px 0 0;
}
.ribbon-edge-bottomleft {
    border-width: 0 10px 0px 0;
}
 
.ribbon-edge-topright,
.ribbon-edge-bottomright {
    left: 100px;
    border-color: transparent transparent transparent #99c;
}
 
.ribbon-edge-topright {
    top: 0px;
    border-width: 0px 0 0 0px;
}
.ribbon-edge-bottomright {
    border-width: 0 0 0px 0px;
}
 
.ribbon-back-left {
    position: absolute;
    top: -10px;
    left: -30px;
    width: 30px;
    height: 40px;
    background-color: #ccf; 
    z-index: 0;
}
 
.ribbon-back-right {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 0px;
    height: 40px;
    z-index: 0;
}
 
.masthead {
  position: relative;
  margin-bottom: 0px;
}
 
.masthead .inner {
    padding-top: 25px;
}
 
div.inner h1.masthead-title {
    margin: 0;
    padding: 0;
}
 
.masthead .masthead-title {
    margin-bottom: 9px;
    font-size: 36px;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 18px;
}
 
.masthead .masthead-tag {
    margin: 0;
    margin-bottom: 18px;
    margin-left: 5%;
    margin-right: 5%;
    font-size: 14px;
    line-height: 1.3em;
    opacity: .7;
    font-weight: 300;
}

Share this post


Link to post
Share on other sites
Rob    547
Rob

Your site comes up asking me to create a configuration file.  That's a WP installation failure.  Did you know this?


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
alishabird    0
alishabird

I have been having problems with layouts breaking and sections doubling when I move between pages. not sure if it is related but what do I need to do to fix this?

 

Thanks.

Share this post


Link to post
Share on other sites
Rob    547
Rob

That's usually because:

1. No .htaccess file exists

2. The wp-config.php isn't set up.

3. Your WP installation wasn't correct to begin with.

 

So,

1. Find the .htaccess file via FTP. If it doesn't exist. make one as a text file and upload it, set permissions to 777.   If you do find one, make sure its permissions are 777.

2. Create a configuration file using the information provided by WP when pushing that button.

3. If you installed WP using an auto-installer, go to your site via FTP, follow the instructions under "How to Delete the WordPress Files and Folders" here:  http://www.tipsandtricks-hq.com/how-to-uninstall-and-reinstall-wordpress-245


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
alishabird    0
alishabird

Hey Rob,

 

Thanks for your response.  I think you may have checked the link when we were testing out changing the permalink settings.  And it may have been that we were down for a bit when that happened.

 

Otherwise I think our install is sound.  We host on dreamhost and their one click installer has usually worked well in the past for us.

 

Thanks!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
One click installs aren't the greatest to be honest, I would always recommend manually installing Wordpress.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • jeomiland
      By jeomiland+
      Hi
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?
       
    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      every since Chrome introduce scroll anchoring (see chrome://flags) blog posts on my page start scroll automatically as soon as the user scrolls down a bit. It is super annoying and I don't know exactly what triggers the incompatibility with Chrome's latest feature that is supposed to improve usability.
      Since I don't know what causes it (Pagelines, or a Plugin), I would like to disable the feature using a CSS override that Google describes as follow:
      "Scroll anchoring aims to be the default mode of behavior when launched, so that users benefit from it even on legacy content. A CSS property overflow-anchor can disable scroll anchoring in part or all of a webpage (opt out), or exclude portions of the DOM from the anchor node selection algorithm. This property supports the following values when applied to an element E:
      overflow-anchor: auto (the default value) declares that the DOM subtree rooted at E is eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E. overflow-anchor: none declares that the DOM subtree rooted at E is not eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E." Do you guys happen to know how to use that property with the ROOT element so it applies to the whole page?
      Thanks
      Michael 
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
×