salue Posted June 19, 2015 Posted June 19, 2015 Alright so I have a question on ksalue.com I am using pages as a home page but when I Open an article it shows the featured image inside the post, how do I hide or remove the featured image from inside the post? Also I have some other issues in the pages like ( Article Image does not work " inserting a link ) + ( Article Video Does not work " Inserting a video link to show as a featured image/thumbnail/video instead of a picture) and 2 other issues I have wrote it on the picture of the posting area in the attached file here is a picture of my posting area
Nils Meyer Posted June 19, 2015 Posted June 19, 2015 I would also really like to know how to hide that image if possible. If not does anyone know where to find the CSS for an opened article to at least integrate the image into the layout?
The Honor Empire Posted June 19, 2015 Posted June 19, 2015 Try this:.cCmsRecord_image { display: none; }
salue Posted June 20, 2015 Author Posted June 20, 2015 Try this:.cCmsRecord_image { display: none; } Hey thanks but where do I input that code ? XDthis is my template CSS<article class='cCmsCategoryFeaturedEntry {{if $record->hidden()}}ipsModerated{{endif}}'> <a href="{$record->url()}" title="{lang="read_more_about" sprintf="$record->_title"}"> <div class="frontpage_firstitem" style="background-image: url({file="$record->record_image" extension="cms_Records"})" > <div class='frontpage_title'> <h2> {{if $record->prefix()}} {template="prefix" group="global" app="core" params="$record->prefix( TRUE ), $record->prefix()"} {{endif}} {{if $record->unread()}} <span class='ipsItemStatus' data-ipsTooltip title="{lang="cms_unread_record"}"><i class="fa fa-circle"></i></span> {{endif}} {wordbreak="$record->_title"} </h2> </div> </div> </a> </article> Index<section class='ipsType_normal ipsSpacer_both'> {{if count($articles)}} {{foreach $articles as $id => $record}} {{if $id === 0}} {template="entry" app="cms" location="database" group="testing-header" params="$record, $database"} {{else}} {template="entry" app="cms" location="database" group="testing-other" params="$record, $database"} {{endif}} {{endforeach}} {{endif}} </section> {{if $database->featured_settings['pagination'] and ( $pagination['pages'] > 1 )}} {template="pagination" app="core" location="global" group="global" params="$url, $pagination['pages'], $pagination['page'], $database->featured_settings['perpage'], TRUE, 'page'"} {{endif}} {{if $database->can('add') or \IPS\Member::loggedIn()->member_id}} <ul class="ipsToolList ipsToolList_horizontal ipsClearfix ipsSpacer_both ipsResponsive_hidePhone"> {{if $database->can('add')}} <li class='ipsToolList_primaryAction'> <a class="ipsButton ipsButton_medium ipsButton_important ipsButton_fullWidth" {{if $database->use_categories}}data-ipsDialog="1" data-ipsDialog-size="narrow" data-ipsDialog-title="{lang="cms_select_category"}"{{endif}} href="{$url->setQueryString( array( 'do' => 'form', 'd' => \IPS\cms\Databases\Dispatcher::i()->databaseId ) )}">{lang="cms_add_new_record_button" sprintf="$database->recordWord( 1 )"}</a> </li> {{endif}} </ul> {{endif}}
The Honor Empire Posted June 20, 2015 Posted June 20, 2015 Customization -> Themes -> Edit Theme -> CSS Tab -> Core/Front/Custom/custom.cssAdd it in there. Anything in the custom.css file *should* "overwrite" the other css files. Otherwise, drop an !important on the css tag..cCmsRecord_image { display: none !important; }
salue Posted June 20, 2015 Author Posted June 20, 2015 Customization -> Themes -> Edit Theme -> CSS Tab -> Core/Front/Custom/custom.css Add it in there. Anything in the custom.css file *should* "overwrite" the other css files. Otherwise, drop an !important on the css tag. Thank you it worked ! Since I got ur attention do u know how to do this ?how can I ad like a layer to make the title show in box on it's under a picture like the website and to add more space between the post boxes I want to have it on my website because it's hard to read the title when it's on images www.ksalue.com
The Honor Empire Posted June 22, 2015 Posted June 22, 2015 Actually, that's something I want to try as well. There's a post on the theme forum about 1x2x2 boxes for databases. I would take a look at that. I haven't had time to look it over as I'm still developing my theme, layouts, and waiting for a few bugs to be fixed before moving to IPB4.
Stefan Johansson_72643 Posted September 12, 2015 Posted September 12, 2015 I also want to 1) have the record image on the index page but 2) not within the article itself. Tried the above addition to the custom.css but it hides the record image on both places. Any ideas why?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.