Jump to content

Recommended Posts

Posted

You can use JavaScript to achieve this by calling:

this.getElement().findOne('whatever-the-class-is');

With this approach, you can add, remove, or modify the element as needed. Alternatively, you can locate the relevant CSS and include it in your custom.css file.

Here are the pros and cons of each approach:

JavaScript:

  • Pros:
    • No need to alter the underlying code, making it easy to implement.
  • Cons:
    • If the id or class changes in future updates, the script will no longer work.

CSS:

  • Pros:
    • Minimal editing required, and changes will persist even if your template updates.
  • Cons:
    • Similar to JavaScript, if the id or class changes, your modifications will stop working.

Each method has its strengths and weaknesses, so choose based on your specific requirements and how likely it is for the element to change in future updates.

  • Recently Browsing   0 members

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