Change the colour scheme on a different section

Permalink Browser Info Environment
Hi

I'd like to be able to change the colourways of different section of the sitehttp://bmc-client.co.uk/preshute/....

I see the basic template to be a 2/3 column grid such as thishttp://bmc-client.co.uk/preshute/index.php/typography... however I'd like to be able to change the page title div to be the same colour as the menu a blue purple and then I'd like the side navigation on the right to tie in with this colour. Could you advise of the best way of doing this please - I'm assuming it will be a page attribute of some sort that will tie in with the CSS. I'm quite keen not to have to do too many different templates so I was hoping there would be a solution such as this.

Many thanks

Charlie

Type: Pre-Sale
Status: In Progress
chassa2556
View Replies:
datasouth replied on at Permalink Reply
datasouth
Hi Charlie,

The easiest way to do this is by color customization. Lets say you want the about us page title to be the same color as the about us nav which is green, go to the about us page and settings->design->customization and change the page title to green but only apply to "this page" and NOT "entire site". Do the same for the side nav.

I hope what I said made sense. Let me know how it works out.

Kind regards.
chassa2556 replied on at Permalink Reply
chassa2556
Thanks for this - I was hoping for a way of making it so I would choose 'about us' as a colour coded section and be able to select an attribute for that page which would target a particular CSS overide for that page. This way I could just select an attribute of 'about' in the page and I could then set the title div, side nav div and titles to all go into that colour in a css file called about.css. Would that be possible?
datasouth replied on at Permalink Reply
datasouth
Hi,

I think that is possible but it would take more time to do and customize compared to just using the customization. End-users would need to tweak/understand the css/less on the backend to get it to work and you'd also need to apply it for each page since custom attributes only work for the page it's applied to.

I don't think we could apply this feature to the theme but I would personally help/guide you in achieving this feature if needed.

Kind regards.
chassa2556 replied on at Permalink Reply
chassa2556
Hi

I have used this in other themes on 5.6 - would this still be functional in 5.7 - it allowed me to make a stylesheet called 'blue.css' and then point to that using page attributes. Could I ask you to take a look at this link where it shows how its done.

https://www.concrete5.org/community/forums/themes/how-to-change-css-...
datasouth replied on at Permalink Reply
datasouth
Hi Charlie,

This snippet would still work on 5.7 as mentioned herehttp://www.webli.us/cheatsheet/doku.php...

<?php
$scheme = $c->getCollectionAttributeValue('colorscheme');
if ($scheme) { ?>
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/<?php echo $scheme; ?>.css" />
<?php } ?>
chassa2556 replied on at Permalink Reply
chassa2556
Great thank you I'll give this a go

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.6
Version Installed - 5.7.5.6
Database Version - 20151221000000

# concrete5 Packages
Academy (1.2.5), Growthcurve Vimeo Video (0.9.1).

# concrete5 Overrides
languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR

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

# Server Software
Apache/2.4.12 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4

# Server API
litespeed

# PHP Version
5.3.29

# PHP Extensions
bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, ionCube Loader, json, libxml, litespeed, mbstring, mcrypt, memcached, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Reflection, session, shmop, SimpleXML, snmp, soap, SPL, SQLite, sqlite3, ssh2, standard, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, yaf, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 1000
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 512M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 1G
memcached.sess_lock_max_wait - 0
mysql.max_links - Unlimited
mysql.max_persistent - 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 - 1440
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
yaf.forward_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.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.