• 0
Sign in to follow this  
Followers 0

Amended Columnizer


Question

Posted (edited) · Report post

Hi,

 

I have made an amendment to the columnizer section within the DMS files as I could not get it to do what I wanted.

The file I have amended is:   /wp-content/themes/dms/sections/columnizer/section.php

 

Reason For Amendment:

I want to add a Linkedin icon and URL link in the same area that the Twitter and Facebook links appear.

(this is when using the default provided columnizer section)

 

I needed to add this myself as the DMS settings only contain input boxes for Twitter and Facebook, not Linkedin.

 

My Question:

Having made the simple addition of 1 line of code to the above file, I fear that such an amendment will be replaced the next time I update my DMS theme.  Is this the case and, if so, can I put my version of section.php in another folder perhaps so that mine always overrides the default?

 

A Better Way:

I realise that you can specify a widget and use that with columnizer instead of the default.  However, when doing so I loose all of the styling which comes with the default one and the icons which go alongside.

 

I'm sure that most of you DMS pros will be thinking I've made a hash of this and that their is probably a much easier way!

Thank you for taking the time to read my query and I do hope this also proves useful for other new users.

 

 

Additional Thought:

The current rendition of the pagelines.com site has a really nice black social bar / menu bar at the bottom.  They have obviously made a section to use for themselves.  Any chance this can be added to DMS for the rest of us or perhaps a simple section that somebody can make available?

Edited by lighthouserich

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

Hi there, if you've edited the core files then yes this will get written over on update. You can copy the section folder for columnizer and in your child theme place in a sections folder, then insert the amended columnizer section. This will make it safe from updates.

 

The social bar at the bottom of the pagelines.com site looks like its been created using the same method as http://docs.pagelines.com/tutorials/creating-a-branding-area but using a simple nav on the left instead of the logo and no nav bar. So its literally two columns, nav on the left and on the right the font awesome icons with the links hardcoded. I'll pass on your suggestion though to have this included as a section.

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted (edited) · Report post

James B Thanks James, I'll take a look at child themes; I haven't played around with them as yet.  Thanks also re the social bar.

 

Rich

Edited by lighthouserich

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

You're welcome.

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