-
AuthorPosts
-
timtecsa Friend
timtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
September 18, 2014 at 6:19 pm #201436To modify the JA News Featured module’s appearance as above I added the following css in custom.css
}
.ja-zinfp-featured-wrap {
/* background: url(“../../images/curl-bg-ltr.png”) no-repeat right -1px; */
/* margin-top: -13px; */
}
.ja-zinfp {
background: #f3f3f3;
border: 1px solid #ccc;
/* border-top: 5px solid #ccc; */
border-left: 0;
margin-right: 4px;
}
.ja-zinfp-featured-wrap .ja-zinfp-featured .ja-zincontent-img {
background: #000;
margin: 0;
/* padding: 5px 7px 0 5px; */
}to this test site http://jat333.globalprintmonitor.net
But the changes are not displaying. What did I do wrong?
BTW: This site also illustrates that featured articles imported by j2xml are shy, i.e. not displaying in JA News Featured module.
-
TomC Moderator
TomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
September 18, 2014 at 6:46 pm #550078What is the file path of your custom.css file?
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
September 18, 2014 at 8:34 pm #550093Hi Tom,
from FileZilla it seems to be: globalprintmonitor.net/httpdocs/jat4t333/templates/ja_teline_iv_t3/css/custom.css
/jat4t333/ being the site’s root folder.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
September 18, 2014 at 8:42 pm #550095I believe the correct file path within which you should be making your modifications is —>
/templates/ja_teline_iv_t3/css/mod_janews_featured.cssThe custom.css option may not work – as this involves a module rather than a core/base template file.
Another method may be the ISOLATE TEMPLATE SETTINGS option.
Eragon H FriendEragon H
- Join date:
- July 2014
- Posts:
- 468
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 5
- Thanked:
- 156 times in 149 posts
September 19, 2014 at 6:41 am #550138In this case, you can add “!important” after each element in custom.css to make it work. For example:
.ja-zinfp-featured-wrap .ja-zinfp-featured .ja-zincontent-img {
background: #000 !important;
margin: 0 !important;
/* padding: 5px 7px 0 5px; */
}timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
September 19, 2014 at 10:48 am #550164Tom,
First I tried the approach you pointed me to as described below:
<blockquote>
7. Add new CSS/JS fileTo add new CSS or JS file, add the file to folder:
- CSS file: {root}/templates/{template-name}/local/css
- JS file: {root}/templates/{template-name}/local/js
Next, copy file: etc/assets.xml to folder: local/etc then define the JS and CSS file.
- // Define JS file
- <scripts>
- <file>js/custom/your-script.js</file>
- </scripts>
- // Define CSS file
- <stylesheets>
- <file>css/custom/your-style.css</file>
- </stylesheets>
</blockquote>
It had no effect so I guess I didn’t get it quite right. See screen shots below.
The direct editing of the modules css did work, of course. Can you see what I did wrong with my first approach?
Tim
Next CSS edits I want to do: See if you can find a way to do them other than direct editing of the module’s css.
}
.ja-zinfp-featured-wrap .ja-zinfp-featured h2.ja-zintitle a {
color: #333
text-decoration: none;
}
.ja-zintitle > a {
font-family: Helvetica, Arial, Georgia, Cambria, “Times New Roman”, Times, serif;
text-transform: none;
font-weight: bold;
color: #069
}
.ja-zinfp-featured-wrap .ja-zinfp-featured h2.ja-zintitle {
font-size: 175%;
line-height: 1.275;
/* background: #000 */
padding: 8px 12px;
}- Eragon H Friend
Eragon H
- Join date:
- July 2014
- Posts:
- 468
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 5
- Thanked:
- 156 times in 149 posts
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
September 23, 2014 at 3:49 pm #550530Hi Eragon,
Yes that does seem to work. I’ve only tested it on one css edit but it looks promising.
Tim
More tests: All edits in custom.css only.
}
.ja-zinfp-featured-wrap .ja-zinfp-featured h2.ja-zintitle {
font-size: 175%;
line-height: 1.2 !important;
background: #fff !important;
padding: 8px 12px;
}
body {
background-color: #fff
color: #666 !important;
font-family: Verdana, Arial, sans-serif !important;
font-size: 12px;
line-height: 20px;
margin: 0;
}
.ja-zinfp-featured-wrap .ja-zinfp-featured h2.ja-zintitle a {
color: #666 !important;
text-decoration: none;
}However, I tried to update the left quotes icon in sec nav (bootstrap.css) with the following in custom.css but it has no effect. Should give an icon “icon-facetime-video” in place of the left quotes icon.
.icon-facetime-video:before {
content: “f03d” !important;
}-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 3 voices, and was last updated by timtecsa 10 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
custom css not showing on ja news featured
Viewing 8 posts - 1 through 8 (of 8 total)