Accordion collapse select area

Permalink Browser Info Environment
Good evening.

Is there a way to change the Accordion collapse area to trigger on selecting the panel rather than the title of each tab? The site we are developing has a single short word for each panel, for instance 'Car' and it would be more elegant to select the whole panel the word is situated on.

Thanks.

Type: Pre-Sale
Status: Resolved
hypotenuse
View Replies:
pilipala replied on at Permalink Reply
pilipala
Hello,

That's a good question. Possibly you could try something like the solution below where they have moved the link before the heading.
https://stackoverflow.com/a/35065131...

The accordion files are kept here: cariad\blocks\cariad_accordion
The file that you would want to change is view.php
Lines 25 to 30 are the ones referring to that area.
Before you modify the theme, please ensure you save a file to your computer in case you need to revert to the original. Also, please save modified files locally as theme updates will overwrite any changes and you will need to upload it again.
Thanks,

Jennifer

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.7
Version Installed - 8.5.7
Database Version - 20210623000000

# Database Information
Version: 10.3.31-MariaDB
SQL Mode: ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Cariad (1.0.2)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
7.1.33

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 91
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 90
max_input_vars - 1000
memory_limit - 128M
post_max_size - 200M
sql.safe_mode - Off
upload_max_filesize - 2M
ic24.api.max_timeout - 7
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:97.0) Gecko/20100101 Firefox/97.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.