Jump to content

Archived

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

alishabird

3D Ribbon in Pagelines DMS

Recommended Posts

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

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

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

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

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

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

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

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

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
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

    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I have noticed that my primary sidebar becomes intermittently invisible when browsing through various blog articles on michaelkummer.com/blog.
      See:
      https://www.dropbox.com/s/z646sgoa3mfjl1j/Screenshot 2018-07-12 15.57.46.jpg?dl=0 and https://www.dropbox.com/s/vdledzzgginvwgv/Screenshot 2018-07-12 15.57.57.jpg?dl=0
      Upon refresh, the sidebar appears. I have been using the following CSS code to hide the sidebar on mobile without any issues. 
      @media only screen and (max-width: 993px) {
      /* hide sidebars */
           .plsb {
              display: none !important;
          }
      }
      I tried to add the following CSS to force the sidebar to show on screens that are wider than 994 pixels but to no avail. Any clue what could be causing this issue?
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using the LESS/CSS Pagelines extension and tried to add the following code to make use of FontAwesome:
      a.c2a:before {
          content: "\f07a\00a0";
          font-family: "Font Awesome 5 Pro";
          Font-weight: 900;
          font-style: normal;
          font-weight: normal;
          text-decoration: inherit;
          padding-left: 4px;
      }
       
      The issue is that as soon as I have the CSS via the Custom Styling text box, Pagelines (or the extension) strips out the backslashes (\). As a result, I had to abandon the CSS/LESS extension and instead add all my CSS code to a separate .css file.
      Is there a fix or workaround for this?
      Thanks
      Michael
    • glyph.marketing
      By glyph.marketing+
      Hello, I am having a problem similar to that experienced by Michael Kummer here. We have pages that show this automatic scrolling issue (examples here and here) and it is sufficiently annoying that we have seen customers bounce while trying to convert. Strangely, it only happens at specific resolutions, so it can be difficult to reproduce. In general we can only consistently reproduce it on a 4k resolution with a browser width between 1517 and 1536px. 
      Thanks to Michael Kummer's help we were able to set the overflow-anchor property to none in the entire body, which fixed the issue as far as we can tell, but also obviously disabled scroll anchoring for the whole site. I tried applying it to the specific element that looked like it was being reloaded, which was the PL Meganav extension, but that was unsuccessful. 
      Can anyone help us figure out which element or ID we can apply this property to, so that we can fix the scrolling issue but not disable scroll anchoring for the entire site?
      Thank you - 
      Glyph Language Services
    • chamois_blanc
      By chamois_blanc+
      Hello,
      Shouldn't the image PL5 component be using the srcset/picture css directives to pick the correct size for an image? or it does already and I don't know how to use it? Thank you for any advice or enlightenment.
    • Dan Haddock
      By Dan Haddock
      Plugins Active and installed: 
      Akismet Anti-Spam
      Coming Soon Page & Maintenance Mode by SeedProd
      Contact Form 7
      Cookie Law Info
      DMS Professional Tools  
      Enhanced Media Library  
      Flamingo
      Google Analytics for WordPress by MonsterInsights
      Google XML Sitemap
      Jetpack by WordPress.com
      Legull 
      Loginizer   
      MailChimp for WordPress
      PageLines Updater    
      Schema App Structured Data 
      Sucuri Security - Auditing, Malware Scanner and Hardening
      Uber reCaptcha    
      Yoast SEO
      Wordpress Version: 4.8.1
      Pagelines Version: 2.2.4
       
      Good Evening/Afternoon or Morning, 
      I am running into a problem with CSS styling not applying inside of most browsers (Safari, Firefox) when I am logged in to wordpress, and all browsers that I have tested when I am logged off and the site has been made public (Chrome, Firefox and Safari).
      As a result, I have managed to identify the probable cause. It looks as though these browsers are refusing to render my sites compiled CSS file due to it being a HTTP URL rather than HTTPS.
      I have attempted to change this URL to HTTPS in my browser, however it brings back an ERROR: File not found page - https://www.shortfilmblog.com/wp-content/uploads/pagelines/compiled-css-core-1505847507.css
      What would you suggest in this regard? Would this be resolvable from your end?
      Happy to provide any further details required.
×