home page - double area

Permalink Browser Info Environment
just a quick initial question.
How to I create/edit the background on the home page that's made up of two coloured areas side by side? Left one reads 'Welcome to Cosmos' and right one reads 'Creative, Parallax, Mobile Responsive'.

Can you also tell me if it's possible to have more than one of these areas under each other?

Thanks, Dean.

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

We'll look into it and see what we can do.

Thanks,
JM
deanhawthornthwaite replied on at Permalink Reply
deanhawthornthwaite
Thanks for instructions, Ive changed colours no problem.

In regard to the double block colour area, I didn't realise it could only have one per page as this was the main reason for purchasing the theme, as there is no other C5 theme that has this.
You see it quite often on wordpress themes and my client really wanted this look.
I have managed to create it using a flex-container as a test but only HTML which is no use for client to edit.
It would be really appreciated if you could add code to make additional areas like this please.
Maybe you could create a block that did it rather than edit whole site code?
datasouth replied on at Permalink Reply
datasouth
Hi Dean,

Unfortunately, Concrete5 does not have a feature wherein you can add Areas through the front-end, since Areas are considered as templates. What you can try doing though is use Layouts to achieve what you want.

Layouts allow you to add multiple rows or columns in a given area. Please see link below on how to do this:

https://documentation.concrete5.org/editors/in-page-editing/block-ar...

Hope this helps.

Thanks,
JM
deanhawthornthwaite replied on at Permalink Reply
deanhawthornthwaite
Sadly Iv'e exhaustively tried using layouts already to achieve this but it doesn’t work for various reasons, the main one being is dosen't balance the content and background colour left to right, plus difficult to get it full width outside the theme framework.

Take look at the top of this page to see how I did it using flex-container code:
http://stmatthews.je/index.php/church-life...
It balances both boxes OK until you get to small window width (386px wide) and then the right text breaks out of the box.

this is the code:

<style>

.flex-container {
  padding: 0;
  margin: 0;
  list-style: none;

  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-flex-flow: row wrap;
  justify-content: space-around;
}

.flex-greybox {
  background: rgb(242, 246, 248);
  padding: 80px;
  width: 570px;
  height: 250px;
  margin-top: 0px;
  
  line-height: 50px;
  color: #1da1dc;
  font-weight: bold;
  font-size: 50px;
  text-align: center;


.flex-bluebox {
  background: #1da1dc;
  padding: 50px;
  width: 570px;
  height: 250px;
  margin-top: 0px;
  
  line-height: 40px;
  color: white;
  font-weight: normal;
  font-size: 40px;
  text-align: center;
}

</style>

<ul class="flex-container">
  <li class="flex-greybox">Our Vision:
  <li class="flex-bluebox">Living in the Presence, Power and Love of God<br>
  <span style="color:#58595b; font-size:20px; line-height: 15px;">Transforming the world in which we live.</span></li>
</ul>


If Im going to continue with your theme it really would be great to have some help with this aspect please?
datasouth replied on at Permalink Reply
datasouth
Hi Dean,

You can try duplicating the Feature area on the Home.php template. This will require editing of the template file itself and requires you to have a PHP/HTML file editor to do this.

On your file system, the code for the section area can be found at line 17-30 at Home template found at packages/ds_cosmos57/themes/cosmos/home.php

Hope this helps.

Thanks,
JM
datasouth replied on at Permalink Reply
datasouth
Hi Dean,

As for changing of the background color, you may change the background color through the 'Customize Theme' feature. To do this, you may follow the steps below:

- login as Administrator
- click on the 'gear icon' on the top left buttons
- click on design
- under theme, click on Customize
- under Featured Area, change the 'Left Background Color' and 'Righ Background Color' with the color you wish to apply
- publish the changes

As for adding more areas, i'm afraid it's not possible since adding areas needs to be added on the code itself.

Thanks,
JM

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000

# concrete5 Packages
Cosmos Theme (1.3.6)

# concrete5 Overrides
None

# 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

# Server API
litespeed

# PHP Version
7.1.25

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, json, libxml, litespeed, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SPL, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 300
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 300
max_input_vars - 1000
memory_limit - 2048M
post_max_size - 128M
sql.safe_mode - Off
upload_max_filesize - 128M
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

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 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.