We have tried to make a template for the slider, but...

Permalink Browser Info Environment
Hi again,

We have tried to make a new template for the slider, where we frame the owerlay as a box around the text (as seen here:http://demo13.concrete5danmark.dk/... ). I tried to make the same thing on the full screen video slide with no luck yet. It seem a little tricky to figure out how to do just that.

Do you have any suggestions as I would like to use it that way here:https://www.concrete5.dk/ .

Type: Discussion
Status: Resolved
C5DK
View Replies:
shahroq replied on at Permalink Reply 1 Attachment
shahroq
Hi,
I add the related CSS rules and it seems working fine.
Check attached screenshot.
C5DK replied on at Permalink Reply
C5DK
Wow. Thanks... I will try it out later to day...
maar replied on at Permalink Reply
maar
Just to add to this,

I'm making another template, but I do not seem to find where you inject the inline css style to the caption div. You are injecting some styles "transform: translateY(0px); opacity: xx.xx; top: xxx.xpx". I need to remove "top" and add bottom: 0;.
I need to make a full width caption overlay, fixed at the bottom, where the height is controlled by the text content. Is this something you could guide me to.

/Michael
shahroq replied on at Permalink Reply
shahroq
Hi,
Plz follow these steps:
Hi,
1- Create a new template for slider at: \packages\theme_pixel\blocks\whale_image_slider\templates\pixel2.php
2- At newly created file change data-template="pixel" to data-template="pixel2" (giving the new template a new identity which enable you target that directly without affecting default template)
3- at \packages\theme_pixel\themes\pixel\css\less\custom.dev.less add this line of code:
div.slider[data-template="pixel2"] 
{ 
   div.slider-caption{
           background-color: red!important;
            opacity:0.8!important;
           padding: 20px 30px;
   }
}

I hope it makes sense. Tell me if you need more help.
C5DK replied on at Permalink Reply
C5DK
Thanks,

I just fixed it another way.

1. make a template
2. make my changes in the template
3. add a new class at the end of the slider-caption (I call it slider-caption-full)
4. make my overwrites in custom.dev.less

That worked too.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

# concrete5 Packages
C5DK Blog (8.3.1.4), Community Store (1.3.2), Pixel Theme (2.0.3)

# concrete5 Overrides
blocks/community_product_list/templates/c5dk_related_products/view.css, blocks/community_product_list/templates/c5dk_related_products/view.php, blocks/community_product_list/templates/c5dk_related_products, blocks/community_product_list/templates/c5dk_big_260/js/jquery.zoom.min.js, blocks/community_product_list/templates/c5dk_big_260/js/jquery.matchHeight.js, blocks/community_product_list/templates/c5dk_big_260/js, blocks/community_product_list/templates/c5dk_big_260/view.css, blocks/community_product_list/templates/c5dk_big_260/view.php, blocks/community_product_list/templates/c5dk_big_260, blocks/community_product_list/templates/c5dk_big_270/js/jquery.zoom.min.js, blocks/community_product_list/templates/c5dk_big_270/js/jquery.matchHeight.js, blocks/community_product_list/templates/c5dk_big_270/js, blocks/community_product_list/templates/c5dk_big_270/view.css, blocks/community_product_list/templates/c5dk_big_270/view.php, blocks/community_product_list/templates/c5dk_big_270, blocks/community_product_list/templates/c5dk_big_230/js/jquery.zoom.min.js, blocks/community_product_list/templates/c5dk_big_230/js/jquery.matchHeight.js, blocks/community_product_list/templates/c5dk_big_230/js, blocks/community_product_list/templates/c5dk_big_230/view.css, blocks/community_product_list/templates/c5dk_big_230/view.php, blocks/community_product_list/templates/c5dk_big_230, blocks/community_product_list/templates/soho_standard/js/jquery.zoom.min.js, blocks/community_product_list/templates/soho_standard/js/jquery.matchHeight.js, blocks/community_product_list/templates/soho_standard/js, blocks/community_product_list/templates/soho_standard/view.css, blocks/community_product_list/templates/soho_standard/view.php, blocks/community_product_list/templates/soho_standard, blocks/community_product_list/templates/c5dk_standard/js/jquery.zoom.min.js, blocks/community_product_list/templates/c5dk_standard/js/jquery.matchHeight.js, blocks/community_product_list/templates/c5dk_standard/js, blocks/community_product_list/templates/c5dk_standard/view.css, blocks/community_product_list/templates/c5dk_standard/view.php, blocks/community_product_list/templates/c5dk_standard, blocks/community_product_list/templates, blocks/community_product_list, blocks/cta/templates/jardex_image_feature_box/view.php, blocks/cta/templates/jardex_image_feature_box, blocks/cta/templates, blocks/cta, blocks/community_utility_links/templates/pixel_header/view.css, blocks/community_utility_links/templates/pixel_header/view.php, blocks/community_utility_links/templates/pixel_header, blocks/community_utility_links/templates/c5dk_standard/view.css, blocks/community_utility_links/templates/c5dk_standard/view.php, blocks/community_utility_links/templates/c5dk_standard, blocks/community_utility_links/templates, blocks/community_utility_links, blocks/whale_image_slider/templates/c5dk_block_background/view.php, blocks/whale_image_slider/templates/c5dk_block_background, blocks/whale_image_slider/templates, blocks/whale_image_slider

# 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/2.4.10 (Debian)

# Server API
cgi-fcgi

# PHP Version
5.6.24-0+deb8u1

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, json, libxml, mbstring, mcrypt, memcache, memcached, mhash, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, recode, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, XCache, XCache Cacher, XCache Coverager, XCache Optimizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 100M
sql.safe_mode - Off
upload_max_filesize - 100M
memcache.max_failover_attempts - 20
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 - 7200
soap.wsdl_cache_limit - 5
xcache.var_maxttl - 0
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 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.