Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Nathan Hills's Avatar

Nathan Hills

Beigetreten 28. Mai 2021

·

Letzte Aktivität 27. Okt. 2021

Folge ich

0

Follower

0

Gesamtaktivitäten

5

Stimmen

0

Abonnement

1

AKTIVITÄTSÜBERSICHT

Neueste Aktivität von Nathan Hills

Nathan Hills hat einen Kommentar hinterlassen

Community-Kommentar Discussion - Tips and best practices from the community

Thanks for the help @Wes but I'm still troubleshooting. 

Kommentar anzeigen · Gepostet 16. Dez. 2015 · Nathan Hills

0

Follower

0

Stimmen

0

Kommentare


Nathan Hills hat einen Kommentar hinterlassen

Community-Kommentar Discussion - Tips and best practices from the community

@Wes, unfortunately I can't push it live quite yet. Dang it. I guess I'll just keep trying to troubleshoot.

Kommentar anzeigen · Gepostet 16. Dez. 2015 · Nathan Hills

0

Follower

0

Stimmen

0

Kommentare


Nathan Hills hat einen Kommentar hinterlassen

Community-Kommentar Discussion - Tips and best practices from the community

@Wes, thanks for the quick response, but I'm not sure I quite understand. I currently don't have a category called "General", rather I have four categories that I want to show on the home page with the icons that click through to see the Sections. 

I've pasted the portion of code from the "Home page" I'm referring too.


 

    {{#each categories}}
     
    {{/each}}
  {{pagination}}

Kommentar anzeigen · Gepostet 15. Dez. 2015 · Nathan Hills

0

Follower

0

Stimmen

0

Kommentare


Nathan Hills hat einen Kommentar hinterlassen

Community-Kommentar Discussion - Tips and best practices from the community

@Wes

I've read through all of the comments and I'm trying to use your code here: https://gist.github.com/moderatorwes/ee49daf8a47dbb6f6068 to add my own icons.  

I've added the JS:

//Category Home Page
$('h2:contains("General")').addClass('imageheading general-icon');

//Section Home Page
$('.section h3:contains("Troubleshooting")').addClass('imageheading Troubleshooting-icon');
$('.section h3:contains("FAQ")').addClass('imageheading FAQ-icon');
$('.section h3:contains("User Guide")').addClass('imageheading UserGuide-icon');
$('.section h3:contains("Orders")').addClass('imageheading Orders-icon');

//Section-Section
$('h1:contains("Troubleshooting")').addClass('imageheading Troubleshooting-icon');
$('h1:contains("UserGuide")').addClass('imageheading UserGuide-icon');
$('h1:contains("FAQ")').addClass('imageheading FAQ-icon');
$('h1:contains("Orders")').addClass('imageheading Orders-icon');

CSS:

.imageheading.general-icon {
background: #fff url(https://p4.zdassets.com/hc/theme_assets/569177/200048165/general.png) top left no-repeat;
}

.imageheading.UserGuide-icon {
background: #fff url(https://p4.zdassets.com/hc/theme_assets/569177/200048165/userGuide.png) top left no-repeat;
}

.imageheading.FAQ-icon {
background: #fff url(https://p4.zdassets.com/hc/theme_assets/569177/200048165/faq.png) top left no-repeat;
}
.imageheading.Troubleshooting-icon {
background: #fff url(https://p4.zdassets.com/hc/theme_assets/569177/200048165/troubleshooting.png) top left no-repeat;
}
.imageheading.Orders-icon {
background: #fff url(https://p4.zdassets.com/hc/theme_assets/569177/200048165/orders.png) top left no-repeat;
}

 

Do I need to add the class imageheading to the 

{{name}}



Thanks in advance.

Kommentar anzeigen · Gepostet 15. Dez. 2015 · Nathan Hills

0

Follower

0

Stimmen

0

Kommentare