Jump to content

Archived

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

MissT

Section content alignment

Recommended Posts

MissT+    4
MissT
I've just started trying out DMS and am working on a simple base theme to start with. What's the best way to change the centered justification which seems to be the norm for section content? For example, when i add a Call Out section it is centered by default and when I add Post Pins, they are also in the center. I won't want this for the majority of sections and websites, its more likely to be left justified so it would be good to know the best place to change this.

Thanks in advance.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

HI,

 

Not entirely sure what you mean, are you saying that you want your sections aligned to the left ?

 

For example - http://d.pr/i/wee3


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
MissT+    4
MissT
Yes, when the website is loading the postpins are left justfied and then as loading completes they jump to the centre. The default design for DMS seems to be centered, good for mobiles I guess, but I want the default to be left justified. Is there somewhere in the Less that this is set at a global level?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

You would need to adjust your pl-content margin

 

From margin: 0 auto;

 

To margin: 0;

 

Try that.

 

However, additional styling may be required.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
MissT+    4
MissT
Thanks Danny, I was going round in circles and you pointed me in the right direction.

What you suggested worked but threw out the footer too but this has worked just for the postpins...

.postpin-list {
margin: 0;
}

Thanks again :)

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

No problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Jennifer Conway
      By Jennifer Conway+
      I recently installed PostPins and it was working great until I accidentally deleted the section. When I added the section back onto the page (without changing a thing), the posts were separated by a significant gap. I tried removing my custom CSS, reinstalling the plugin, deactivating other plugins, refreshing the cache -- but nothing seems to work. Unfortunately, I was also unable to revert to the published site (although I had not published the the new layout). 
      The section is currently working on the published site (insatiablecuriosities.com). The mis-stacked section is shown in the attached image. 

    • Janardan
      By Janardan+
      I want to know - how to load POSTS/ARTICLES from SUBDOMAIN of same main domain to homepage sidebar of main domain with the help of PostPins section adding in right side of sidebar .. but, there are no option to load posts from sub domains posted articles? or can we add custom links? to this PostPins section to display articles/posts from subdomain to show on main domain right side sidebar area?
      Because; main domain have posts overused I want to display from sub domain post LINKS to sidebar with the PostPins section help.
      I hope you got my question.. Thanks!
    • MrFent
      By MrFent+
      When PostPins is active on a page, I get PHP warnings:
      Notice: Undefined property: PostPins::$icon in /www/wp-content/plugins/postpins/postpins.php on line 318 Notice: register_metatab is deprecated since version 1.2 of PageLines DMS! Use section_opts() instead. in /www/wp-content/themes/dms/dms/includes/deprecated.php on line 280
      It looks like PostPins is still using section_optionator() and should be using section_opts()
    • roryorr
      By roryorr+
      Hi guys, need some help aligning PostPins left using CSS?
      http://www.cabaritaoceanhealthretreat.com.au/specialised-retreats/
      Cheers!
      Rory
    • petere21
      By petere21+
      I want to change meta info in postpins blog Editor offers me to do it with shortcodes: 
      Use shortcodes to customize the meta information for these pins.
      But I ma not able to set it by right way
      for example if I want to chande meta to show tags what is the right syntax? 
      [the_tags] doesnt work
×