Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › Photo Seller – any way to center gallery and album display?
- This topic has 12 replies, 3 voices, and was last updated 7 years, 9 months ago by hilgertom.
-
AuthorPosts
-
December 3, 2016 at 9:48 pm #13858batracyMember
Instead of everything being left adjusted, I would like to have the gallery and album thumbnails centered in the space available. Is this possible? I’ve tried to edit the css without any success.
December 4, 2016 at 2:12 am #74724PeterMemberHi,
Can you please provide a link to the page you want centred so I can take a look using firebug. (please remove any custom CSS code you may have applied)
December 4, 2016 at 2:29 am #74725batracyMemberThanks Peter, but I figured it out. Although I’m not sure where I should add my custom CSS code so it will override the default settings. What I changed is in Template 2 I removed the float: left, and changed the display to inline-block. Where do I code these changes so that updates will not erase them?
Also have another question, but will start a new thread for that as it is not related to the current subject.
December 4, 2016 at 11:56 pm #74726PeterMemberSimply do the following:
1) Go and grab the following plugin:
http://www.tipsandtricks-hq.com/wordpress-custom-css-plugin-6413
2) Then add your CSS code in the settings of the above plugin.
December 6, 2016 at 12:14 am #74727batracyMemberNormally this would work, but the styles I’m changing are for the album display which gets loaded just before the album code is inserted. Hope that makes sense. So, is there another way to change the album css so that updates won’t destroy my changes?
December 6, 2016 at 6:04 am #74728PeterMemberI don’t quite understand your concern. Have you tried doing what I suggested anyway?
What is the actual custom CSS code you are trying to apply?
December 6, 2016 at 4:34 pm #74729batracyMemberYes, I have tried what you suggested and it doesn’t work. The reason it doesn’t work is the custom css file is loaded in the header portion, but the css for the album is loaded in the body section as part of the album code. I am changing css in the album so the albums will display the way I would like.
I moved the border and box-shadow from the container to the img item, and changed the container display to inline-block. Then I changed the font-family, font-style, font-size, font-weight in the item and removed the background and border from the item.
you can see the results here: [http://www.bruceatracyphoto.com]
December 7, 2016 at 1:24 am #74730PeterMemberYou can easily solve this problem by adding “.entry-content” at the beginning of each of your lines of custom CSS code.
Here is an an example
.entry-content #albumcontainer .album_item_bottom_t2 .album_item_name_t2 {
font-family: "Playfair Display",serif;
font-size: 21px;
font-style: italic;
font-weight: normal;
}So in summary, remove all of your changes you made to the photo seller files and then apply the technique above using the custom CSS plugin.
Let me know how it goes.
December 7, 2016 at 7:32 pm #74731batracyMemberOk that works! Thank you.
January 28, 2017 at 3:02 pm #74732hilgertomMemberHi. I need to center albums and galleries lists too. I installed plugin for custom css and dont know what css code add to center these lists.
page with album list fotohilger.cz/fotobanka-image-shutter-stock-photobank-mediafoto/
January 29, 2017 at 1:41 am #74733batracyMemberAdd the following code to your custom css file (this is how I got it to center)
.entry-content #albumcontainer .album_item_container_t2{
display: inline-block;
}
January 30, 2017 at 12:12 am #74734PeterMemberI recommend that you use the custom CSS plugin to add any custom code.
1) Go and grab the following plugin:
http://www.tipsandtricks-hq.com/wordpress-custom-css-plugin-6413
2) Add the CSS code suggested by batracy in the settings of the above plugin
If that doesn’t work, delete that code and try the following:
.entry-content #albumcontainer {
width: 85%;
margin: 0 auto;
}January 31, 2017 at 3:24 pm #74735hilgertomMemberThank u guys. Solution from Peter works nice
-
AuthorPosts
- You must be logged in to reply to this topic.