Seren - Remove block areas

Permalink Browser Info Environment
Hi again Jennifer. Sorry if this is a real newbie question. I have populated sections of the homepage using the Home template - some of these are redundant so I'd like to remove them (namely Main 4 and Main5). I have attached a screenshot to give you more of an idea.

Grateful for help.

1 Attachment

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

Sorry for the delay in our response. I'm afraid those areas are coded into the template, and you would need to create a custom page template and footer.php. To edit the home page template, you would need to use home.php located in the Seren package folder here:

seren\themes\seren

Open this up in something like Notepad++ or Dreamweaver and rename it, e.g. home-custom.php. Then you need to delete the lines for the areas that you don't want to have in your template. In this case, you would delete from about line 75 starting with this code
<div class="seren-full-width seren-home-4">

to about line 110 where you will see #main-5 and .seren-full-width end.
</div>
    <!--/#main-5--> 
  </div>
  <!--/.seren-full-width-->

Save the new page template locally, as you may need to upload it again if you update your theme in the future.

Then as you are deleting footer areas, you also need to customise footer.php which is located here:

seren\themes\seren\elements

So like you did before, open up footer.php in Notepad++ or similar. I would suggest saving the original footer.php elsewhere in case you want to use it again (e.g. you can save it as footer-original.php and keep it locally). Then make the changes, but leave the edited version as footer.php. To remove the areas you want, delete from around line 6:

<div id="seren-top-footer">

to line 32

</div>
  <!-- /#seren-top-footer -->

I would advise that you should save to the clipboard any contents on your concrete5 website that you have in the areas that you will be removing (e.g. Sitewide Top Footer 1 etc.), and then delete them. That way, you can use the content later if you need. It usually doesn't matter, but sometimes content that was in areas no longer in a page template seems to cause problems.

Then you would need to upload the new page template to your server under packages/seren/themes/seren, go to the dashboard and select pages and themes > page templates button next to Seren > your new page template should be showing > click OK. Then navigate to your home page and choose your new page template under Design. You would also need to upload your new footer.php to packages/seren/themes/seren/elements

If you need more help, just send us an email at contact@pilipalawebdesign.com.

Thanks,

Jennifer
heritageboy replied on at Permalink Reply
heritageboy
Many thanks for your very helpful reply Jennifer - I followed your instructions and am happy with the results.
pilipala replied on at Permalink Reply
pilipala
Great, thanks for letting us know :)

Jennifer

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.4
Version Installed - 8.4.4
Database Version - 20180717000000

# concrete5 Packages
Seren (1.0.2), Simple Anchor (1.0.1), Simple Gallery (1.0.7)

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

# PHP Version
7.2.13

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

# PHP Settings
max_execution_time - 50000
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 5000
memory_limit - -1
post_max_size - 64M
upload_max_filesize - 64M
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 (Windows NT 10.0; Win64; x64) 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.