Jump to content

How To Change Data-Role Name


Recommended Posts

Hi Guys - As I wrote in this topic - HERE - we need to change the data-role name from sidebarAd to something without the name "Ad" in it because Adblock Plus blocks anything with this name. I can rename the data-role in the template but then the sidebar has trouble being displayed on mobile devices for some reason (see linked topic above).

Question: What's the best way to rename a data-role?

Link to comment
Share on other sites

Just now, bfarber

Typically data-* attributes are leveraged for other things, such as javascript, and you can't just rename it without any consequences.

Thanks for the reply. That’s what I ran into with the sidebar not loading on mobile when I changed the name in the template.

Given that Adblock Plus is blocking sidebarAd, what can we do about this?

Thanks for any help you can provide.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...