Jump to content
Sign in to follow this  
cerchris

Customise Universal Sidebar

Recommended Posts

cerchris

Hi There

 

Although my CSS is improving quickly having customised this site with little help, I am still quite a newbie when it comes doing doing some PHP. Can anyone help with achieving a sidebar customisation on this site http://koruhealing.co.nz/home/

 

I have attached a layout file to depict what I want to achieve - many thanks

 

post-41056-0-84570300-1355453070_thumb.j

Share this post


Link to post
Share on other sites
James B

Hi there, you can achieve that layout using css you won't need to use php. What were you looking to do with the php?

 

Looking at your site you already have the widgets in place, so you'll need to color the widget title background using css and apply a border to the left of the sidebar column. The buttons could be inserted using the pagelines shortcodes on the tools page of the demo :)


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
cerchris

ok great I will give it a go.

 

So I put this code in the widget window?:

  1. [pl_button type="success" link="http://google.com" target="blank"]
  2. Success
  3. [/pl_button]

And I could style the button using?:

.pl_button {

......

}

Share this post


Link to post
Share on other sites
Danny

Hi,

 

Add the button shortcode to your text widget replacing the read more link you already have. Then inorder to style your button, I recommend you create your own, use the following:

 

<a class="btn btn-success btn-large" href="URL here">Button_Text</a>

Now what I would do is replace btn-success with your own class, for example:

 

.btn-korugreen

 

Then view the CSS used for the .btn-success and change it so that it uses the style you want and then add it to your custom CSS/LESS.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
cerchris

Thanks for the help Danny, getting on pretty well except I need some help with the following http://koruhealing.co.nz/home/:

  1. The text in the "what others say" section is fine, but the text in the subscribe section is set to "p" (unlike the text in the first sidebar section) and not displaying correctly. How can I setup the text to display the same in both sidebar sections.
  2. Send button is mostly fine except I can't get the selector right to style the hover of that button.
  3. Read more button is all over the show, can you help with the hover styling please and also I wd like this to align left with the left edge of the above text

many thanks

Share this post


Link to post
Share on other sites
James B

Hi there,

 

In the widget where the text is having <p> tag added, check you've not ticked the checkbox 'automatically add paragraphs' on the text widget in Appearance>widgets.

 

For the hover on the button, it looks like you need to adjust the background-position on the hover effect.

 

.btn:hover { background-position: 9px -30px;}

You can align the text using css too, to move the position of the button you'll need to adjust the margin/padding of the <p> element the button is sitting in.

 

{text-align: left;}

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
cerchris

Thanks for that  - got the text alignment sorted and the bottoms in place, still no luck with the hover states of both buttons. The css you suggested seemed to make it worse:

background-position: 9px -30px;

Any others ideas?

 

Now just need the hover state of the "read more" button to line up, and I can't get a hover effect to work on the "send" button. In both cases I am wanting the hover effect to be the vertical flip of this color gradient :
background-image: -moz-linear-gradient(center top , #7ea24a, #576330);

Share this post


Link to post
Share on other sites
Danny

The issue is you have added some custom CSS which adds a height and width to the button please remove this code, as it is causing the text alignment issue.

 

Also, you have only added the background-image gradient code for mozilla, so your button will only look correct in the FireFox browser, please use Google Chrome web dev tool and inspect a PageLines standard button and copy this code, then make the changes for you new button color.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • 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
    • jeomiland
      By jeomiland+
      Hi guys
      Hopefully an easy question. I have some custom code included in a Next section in a DMS site that I'm converting to platform5. What is the easiest way to insert my code into a "section" which I can easily add to my page structure with the platform5 page editor? I have the Embed extension but that takes javeascript, and my PHP test failed. Also have the Shortcodes extension, but looks like that only inserts objects into the WP-loop? and again, how to create a Hook that can go here?
      thanks...
×