Jump to content
This topic contains 64 posts. A summary containing the most significant posts is available

Featured Replies

/* Menütags */
li[data-navapp="blog"] span:nth-child(2)::after {
    content: "Pro";
    display: inline-block;
    background: #FFB343;
    padding: 2px 5px;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 4px;
    color: black;
    font-weight: bold;
    margin-left: 10px;
    letter-spacing: 0em;
}

li[data-navapp="gallery"] span:nth-child(2)::after {
    content: "Neu";
    display: inline-block;
    background: #00cc66;
    padding: 2px 5px;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 4px;
    color: black;
    font-weight: bold;
    margin-left: 10px;
    letter-spacing: 0em;
}

I did this for my testsite... here you control which app it should affect

  • Replies 63
  • Views 3.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • There might be an issue with the patch system, so just update these files. Any cloud customers can just PM me their URL and I can push the updated files from our end. Patch.zip

  • Oh yeah. I didn't press a button. I pressed it now. It should appear.

  • /* Menütags */ li[data-navapp="blog"] span:nth-child(2)::after { content: "Pro"; display: inline-block; background: #FFB343; padding: 2px 5px; font-size: 10px; text-transform:

Posted Images

@David N. Exactly where did you put this code ?? I can't figure it out.

 
/* Menütags */
li[data-navapp="blog"] span:nth-child(2)::after {
    content: "Pro";
    display: inline-block;
    background: #FFB343;
    padding: 2px 5px;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 4px;
    color: black;
    font-weight: bold;
    margin-left: 10px;
    letter-spacing: 0em;
}

li[data-navapp="gallery"] span:nth-child(2)::after {
    content: "Neu";
    display: inline-block;
    background: #00cc66;
    padding: 2px 5px;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 4px;
    color: black;
    font-weight: bold;
    margin-left: 10px;
    letter-spacing: 0em;
}

I did this for my testsite... here you control which app it should affect

How to make it appear on mobile?

 

@David N. Exactly where did you put this code ?? I can't figure it out.

In the Custom CSS, that you can access in the Theme editor. 

Got it thanks.

 

How did you add color for Buttons?

 

You can do it with this short snippet

li[data-navapp="blog"] .fa-solid {
    color: #007BFF; 
    font-size: 16px; 
    transition: color 0.3s ease; 
}

li[data-navapp="blog"]:hover .fa-solid {
    color: #FF5733;
}

 

 

How to make it appear on mobile?

/* Blogs */
li:nth-child(2) span.ipsOffCanvas__label::after {
    content: "Pro";
    display: inline-block;
    background: #00cc66;
    padding: 2px 5px;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 4px;
    color: black;
    font-weight: bold;
    margin-left: 10px;
}

/* Downloads */
li:nth-child(6) span.ipsOffCanvas__label::after {
    content: "Neu";
    display: inline-block;
    background: #FFB343;
    padding: 2px 5px;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 4px;
    color: black;
    font-weight: bold;
    margin-left: 10px;
}

Here only this works, currently. Maybe @Ehren have a better idea for the mobile view ?

Edited by MythonPonty

 
/* Blogs */
li:nth-child(2) span.ipsOffCanvas__label::after {
    content: "Pro";
    display: inline-block;
    background: #00cc66;
    padding: 2px 5px;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 4px;
    color: black;
    font-weight: bold;
    margin-left: 10px;
}

/* Downloads */
li:nth-child(6) span.ipsOffCanvas__label::after {
    content: "Neu";
    display: inline-block;
    background: #FFB343;
    padding: 2px 5px;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 4px;
    color: black;
    font-weight: bold;
    margin-left: 10px;
}

 

How can I select it for the gallery

Edited by EliasM

Count the position and change it here... If the gallery is on position 5 Change the 2 in 5

li:nth-child(2) span.ipsOffCanvas__label::after {
 

Count the position and change it here... If the gallery is on position 5 Change the 2 in 5

li:nth-child(2) span.ipsOffCanvas__label::after {

I already got it, thanks

 

Count the position and change it here... If the gallery is on position 5 Change the 2 in 5

li:nth-child(2) span.ipsOffCanvas__label::after {

It would be better if there was an option to select the application directly, where this selection changes based on the user's permissions, I found that it appears to the visitor on another name😂

 

It would be better if there was an option to select the application directly, where this selection changes based on the user's permissions,

Correct... 

first i've tried it with this

/* Blogs */
li a span.ipsOffCanvas__label:contains("Blogs")::after {
    content: "Neu";
    display: inline-block;
    background: #00cc66;
    padding: 2px 5px;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 4px;
    color: black;
    font-weight: bold;
    margin-left: 10px;
    letter-spacing: 0em;
}

I actually wanted to check if the value of the label is “Blogs”, that the CSS rule then takes effect. But that doesn't seem to work. Maybe Ehren has a better solution. 🙂

 

 

It would be better if there was an option to select the application directly, where this selection changes based on the user's permissions, I found that it appears to the visitor on another name😂

If you want to do this for the mobile view... Here is a solution. 

document.querySelectorAll('.ipsOffCanvas__label').forEach(label => {
    if (label.textContent.trim() === "Blogs") {
        label.insertAdjacentHTML(
            'afterend',
            `<span style="
                display: inline-block;
                background: #FFB343;
                padding: 2px 5px;
                font-size: 10px;
                text-transform: uppercase;
                border-radius: 4px;
                color: black;
                font-weight: bold;
                margin-left: 10px;
            ">Blogs</span>`
        );
    }
    if (label.textContent.trim() === "Downloads") {
        label.insertAdjacentHTML(
            'afterend',
            `<span style="
                display: inline-block;
                background: #00cc66;
                padding: 2px 5px;
                font-size: 10px;
                text-transform: uppercase;
                border-radius: 4px;
                color: black;
                font-weight: bold;
                margin-left: 10px;
            ">Downloads</span>`
        );
    }
});

But this is not a CSS Code, you have to add this into the Design Area --> JavaScript 

image.png.3bee90ed3a0b147f915cc66ddfb94e07.png

  • Matt unpinned this topic
Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.