Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
For a Page Copy I want to create lists in the Pallet 01 Copy with Markdown. The code does not work in Pallet 01 Copy.
If I enter the identical code in Main Copy, the lists are generated with a list marker. I also used the code in CE4 used in Sidebar Copy.
I have used the following code:
<ul>
<li>Reiseübersicht</li>
<li>Reiseblog</li>
<li>Fotoprojekte</li>
</ul>
Thanks to all
LeMa
Offline
Can you post a link?
Going by memory here, but list items in pallets may have css applied that sets the list-style-type to none.
This can be changed with custom css.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
No, that's not possible because I work on a local server.
There must be a difference between the main and the pallet 01
LeMa
Offline
Yes, I believe lists are using different css.
I don’t know why this is, but it’s easy to change with custom css?
Let us know if you need help with the code.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Yes that would be very good. I am not so experienced here. But have already added code in the customer css.
Many Thanks
LeMa
Offline
If you’re only using a list in one or two places it might be easiier to just apply the css inline:
<ul style="list-style-type: initial;">
<li>Reiseübersicht</li>
<li>Reiseblog</li>
<li>Fotoprojekte</li>
</ul>
You can set the type to whatever style you like:
https://www.w3schools.com/CSSref/pr_list-style-type.asp
I’ve writtten custom css to set list-style-type for pallets, but I’ll need to get to my pc. On the iPad right now and it’s not the best tool for probing pages.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I would like to use the list on other pages. So I need a code of all available.
LeMa
Offline
try adding this to your custom css file:
.widget ul li {
list-style-type: initial;
margin-left: 12px ;
}
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I can not get any further here. I suspect it's a bug from BL2. It works in Main Copy but not in the Pallet 01 Copy and Pallet 02 Copy.
I thank you here for the help. Eventeull can Matthew fix the error.
Offline
It works for me. See my test page: http://backlight-2-100.barbeephoto.com/list/
my guess is that your custom css isn't being implemented correctly. How have you gone about it?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I have previously included the custom css with another function (scroll-to-top function). This works.
I've added the code just as shown in these files. Eventeul I'm doing something else wrong.
___________________________________________
.btn-scroll-to-top {
background-color: transparent;
display: none;
position: fixed;
bottom: 7px;
right: 15px;
border: 1px solid;
height: 32px;
width: 32px;
border-radius: 50%;
text-align: center;
line-height: 29px;
vertical-align: middle;
text-decoration: none;
color:#6f7c80;
}
.btn-scroll-to-top:hover {
text-decoration: none;
color:#ff0000;
border-color: red;
}
a.btn-scroll-to-top {
z-index: 3;
}
.widget ul li {
list-style-type: square;
margin-left: 12px ;
}
________________________________________________
LeMa
Offline
Sorry, I forgot you’re using Backlight 1. There may be a different selector for the pallet text area.
I’ll take a look at that
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
sorry I probably did not mention it either. I am use Backlight 2
LeMa
Offline
Actually, it's working for me in my Backlight 1 (1.2.3) test site using the same css.
I can't tell you much more without seeing a page though.
You could try adding it inline. Because of the specific css in backlight that sets the li list style to none in the pallets, you'd have to use code like this:
<ul >
<li style="list-style: square; margin-left:12px;">Reiseübersicht</li>
<li style="list-style: square; margin-left:12px;">Reiseblog</li>
<li style="list-style: square; margin-left:12px;">Fotoprojekte</li>
</ul>
but the selector: .widget ul li should work in custom css, unless there's more specific css somewhere else or unless there's other, overriding css coming after that.
If you know how to use the browser inspector, you can check to see what css is being applied to the list item and where it's coming from.
(just saw your note about using Backlight 2. I'll move this to that forum)
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline