Effect changes to Page Title behaviour

Permalink Browser Info Environment
Hi,

The template (as it currently functions) adds classes to the h1 tag for the page title depending on the length of the title. I want to stop that, but I'm having troubles figuring out how make that happen.

I know the code is in themes/pixel/elements/header-parent-title.php, but the behaviour doesn't change when I change the code. Is there a path I can create beneath the applications folder that will override this script? OR, what else can I do to eliminate this behaviour.

Thanks!

Type: Pre-Sale
Status: Resolved
jalen
View Replies:
shahroq replied on at Permalink Reply 1 Attachment
shahroq
Hi,
For doing so, open the `packages\theme_pixel\themes\pixel\elements\header.php` and append this line after if/else block at line 297: [check the attached screenshot]

$h1Class = "";
jalen replied on at Permalink Reply
jalen
That worked. Thanks!

I noticed the very sam code in another script in the same directory (header-parent-title.php). Is that script defunct or not used?
shahroq replied on at Permalink Reply
shahroq
That's legacy code, and obsolete on V2.4.
jalen replied on at Permalink Reply
jalen
Makes sense. Thanks!

concrete5 Environment Information

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

# Database Information
Version: 5.7.29-log
SQL Mode: NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Deluxe Customizable Twitter Feed (1.0.4), Magic Tabs (7.9.2), Pixel Theme (2.4.0), Poptin (0.9.9), Questio SVG Image (1.1.2), Responsive Embed (1.0.1)

# concrete5 Overrides
blocks/express_entry_list/templates/staff_cards/view.js, blocks/express_entry_list/templates/staff_cards/view.php, blocks/express_entry_list/templates/staff_cards/view.css, blocks/express_entry_list/templates/staff_cards, blocks/express_entry_list/templates/timeline/view.js, blocks/express_entry_list/templates/timeline/view.php, blocks/express_entry_list/templates/timeline/view.css, blocks/express_entry_list/templates/timeline, blocks/express_entry_list/templates/Programs/view.css, blocks/express_entry_list/templates/Programs/view.php, blocks/express_entry_list/templates/Programs, blocks/express_entry_list/templates/News/view.css, blocks/express_entry_list/templates/News/view.php, blocks/express_entry_list/templates/News, blocks/express_entry_list/templates/Programs_Plus/view.php, blocks/express_entry_list/templates/Programs_Plus/view.css, blocks/express_entry_list/templates/Programs_Plus, blocks/express_entry_list/templates/content.txt, blocks/express_entry_list/templates, blocks/express_entry_list, blocks/whale_cta/Full_Bleed_Image/view.php, blocks/whale_cta/Full_Bleed_Image, blocks/whale_cta, blocks/content/templates/membership_card/view.css, blocks/content/templates/membership_card/view.php, blocks/content/templates/membership_card, blocks/content/templates, blocks/content

# 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
cgi-fcgi

# PHP Version
7.3.24

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

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 256M
post_max_size - 512M
upload_max_filesize - 512M
mbstring.regex_stack_limit - 100000
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 - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

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.