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

    • 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...
    • KathleenAspenns
      By KathleenAspenns+
      I would like to upgrade my site to PHP 7, but there is an error warning in the PL Framework theme. I should think this should be fixed asap, I cannot be the only person trying to be up to date.
      1976 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
       
    • 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
      DMS: Latest Version
      Running a Child Theme
      Wordpress: 4.8.3
      Plugins:
      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
      Really Simple SSL
      Schema App Structured Data
      Sucuri Security - Auditing, Malware Scanner and Hardening  
      Uber reCaptcha
      Yoast SEO
      Problem Below
      Hi Team,
      I am looking to style the Continue Reading Button with the PHP you provided in an earlier ticket here: 
       
      I put the PHP code into my site, however I do not get my Icon back, I just get back Read More >>
      I have attached a screenshot of the code in place on my site along with the output.
      Interested to know what I may be doing wrong? - I am very new to PHP so a bit apprehensive on this.
      The Images: https://drive.google.com/open?id=0B0i4JJXa2jdQN2xoakZNRUdmaU0
      Let me know if you need any more information from me.
       
    • 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.
×