-
AuthorPosts
-
April 13, 2014 at 7:22 pm #196719
Hi, I need to remove Masshead title from only one article linked to a main menu (“Optimointi”-menu item). And need to replace it by background image. For some reason masshead extra configuration does nothing. No changes are made eventhough I change the configuration. Pls advice. Thanks.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
April 14, 2014 at 9:16 am #530776I have fixed it directly on your site. Here is the tweak:
Change
[Masshead Itemid="2729" background="images/sampledata/ja_zite/masshead/Optimoi_logo.png"]Description[/Masshead]
[Masshead Itemid="2730" title="" background="mh-1.jpg"]Description[/Masshead]
[Masshead Itemid="2731" title="" background="mh-1.jpg"]Description[/Masshead]
[Masshead Itemid="2732" title="" background="mh-1.jpg"]Description[/Masshead]
[Masshead Itemid="2733" title="" background="mh-1.jpg"]Description[/Masshead]
[Masshead Itemid="2734" title="" background="mh-1.jpg"]Description[/Masshead]
[Masshead Itemid="2735" title="" background="mh-1.jpg"]Description[/Masshead]To
[Masshead Itemid="503" background="images/sampledata/ja_zite/masshead/Optimoi_logo.png"]Description[/Masshead]
[Masshead Itemid="2730" title="" background="mh-1.jpg"]Description[/Masshead]
[Masshead Itemid="2731" title="" background="mh-1.jpg"]Description[/Masshead]
[Masshead Itemid="2732" title="" background="mh-1.jpg"]Description[/Masshead]
[Masshead Itemid="2733" title="" background="mh-1.jpg"]Description[/Masshead]
[Masshead Itemid="2734" title="" background="mh-1.jpg"]Description[/Masshead]
[Masshead Itemid="2735" title="" background="mh-1.jpg"]Description[/Masshead]Itemid is menu item ID from menu of your site.
1 user says Thank You to Ninja Lead for this useful post
wisdom114 Friendwisdom114
- Join date:
- August 2014
- Posts:
- 105
- Downloads:
- 13
- Uploads:
- 18
- Thanks:
- 31
- Thanked:
- 2 times in 1 posts
August 12, 2014 at 5:46 pm #545693I am having trouble changing the background in my Masshead. I studied the user guide carefully, but I still am not able to change it.
This is the page I want to change http://faatih.com/index.php?option=com_content&view=article&id=12&Itemid=107
And this is configuration conditions I added [Masshead Itemid=107 title=”Home” background=”images/mh-1.jpg”] [/Masshead]
any help please
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
August 12, 2014 at 8:22 pm #545712Is the area you are wanting to insert a background image where the “Home” item is?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
August 13, 2014 at 1:33 am #545739<em>@wisdom114 440961 wrote:</em><blockquote>I am having trouble changing the background in my Masshead. I studied the user guide carefully, but I still am not able to change it.
This is the page I want to change http://faatih.com/index.php?option=com_content&view=article&id=12&Itemid=107
And this is configuration conditions I added [Masshead Itemid=107 title=”Home” background=”images/mh-1.jpg”] [/Masshead]
</blockquote>To add the background in JA Masshead module, you can try this step:
+ Create the templates/ja_nuevo/html/mod_jamasshead/default.php file and add new code below:
<?php
defined('_JEXEC') or die('Restricted access');
?>
<div class="ja-masshead" <?php if(isset($masshead['params']['background'])): ?> style="background-image: url(<?php echo $masshead['params']['background'] ?>)" <?php endif; ?>>
<h3 class="ja-masshead-title"><span><?php echo $masshead['title']; ?></span></h3>
<div class="ja-masshead-desc"><span><?php echo $masshead['description']; ?></span></div>
</div>Let me know if it helps.
wisdom114 Friendwisdom114
- Join date:
- August 2014
- Posts:
- 105
- Downloads:
- 13
- Uploads:
- 18
- Thanks:
- 31
- Thanked:
- 2 times in 1 posts
August 13, 2014 at 4:38 pm #545876To tell you the truth, I am a newbie to website designing and HTML. I don’t know how to create that file.
I read the user guide for the Masshead module and it was straight forward and made sense. However, I do not know why my configuration commands did not work:
[Masshead Itemid=107 title=”Home” background=”images/mh-1.jpg”] [/Masshead]
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
August 13, 2014 at 4:49 pm #545879<em>@wisdom114 441171 wrote:</em><blockquote>To tell you the truth, I am a newbie to website designing and HTML. I don’t know how to create that file.
</blockquote>You simply create the new file “default.php” within file path –> templates/ja_nuevo/html/mod_jamasshead/
So the final file path will be —> templates/ja_nuevo/html/mod_jamasshead/default.php
Then you simply copy and paste the code that Ninja Lead provided above.
🙂
1 user says Thank You to TomC for this useful post
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
August 14, 2014 at 7:40 am #545948<em>@wisdom114 441171 wrote:</em><blockquote>To tell you the truth, I am a newbie to website designing and HTML. I don’t know how to create that file.
I read the user guide for the Masshead module and it was straight forward and made sense. However, I do not know why my configuration commands did not work:
[Masshead Itemid=107 title=”Home” background=”images/mh-1.jpg”] [/Masshead]</blockquote>
Please download and extract my attached file and copy it into templates/ja_nuevo/html/mod_jamasshead/ folder. If you still face this problem, you can pm me admin login and ftp account of your site. I will help you out.
1 user says Thank You to Ninja Lead for this useful post
TzuChi Foundation FriendTzuChi Foundation
- Join date:
- September 2014
- Posts:
- 39
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 10
November 3, 2014 at 4:34 am #553887how/where to change the color at the right & left side of masshead module?
Eragon H FriendEragon H
- Join date:
- July 2014
- Posts:
- 468
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 5
- Thanked:
- 156 times in 149 posts
November 3, 2014 at 8:12 am #553914Can you let me know more detail about how do you want to change by:
1. Screenshot with description of how you want to change
2. The direct linkIt would be easier for me to understand your need and provide a suggestion
TzuChi Foundation FriendTzuChi Foundation
- Join date:
- September 2014
- Posts:
- 39
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 10
November 3, 2014 at 11:00 am #553945Hi,
Please refer to attachment
1. demo
2. quickstart sample data of ja zitei want to fill in blue color in the red frame part
thanks
-
TomC Moderator
TomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
November 3, 2014 at 5:41 pm #553988<em>@tc_sling 451415 wrote:</em><blockquote>Hi,
Please refer to attachment
1. demo
2. quickstart sample data of ja zitei want to fill in blue color in the red frame part
thanks</blockquote>
Can you provide the url to the page you’re referencing above?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 4, 2014 at 4:49 am #554073<em>@tc_sling 451415 wrote:</em><blockquote>Hi,
Please refer to attachment
1. demo
2. quickstart sample data of ja zitei want to fill in blue color in the red frame part
thanks</blockquote>
Try this
Open templates/ja_zite/css/template.css file
find and change with my red mark
.ja-masshead {
background-color: #000 ;
background-repeat: no-repeat;
background-position: center top;
height: 160px;
}1 user says Thank You to Ninja Lead for this useful post
James G FriendJames G
- Join date:
- September 2014
- Posts:
- 130
- Downloads:
- 104
- Uploads:
- 4
- Thanks:
- 20
- Thanked:
- 40 times in 6 posts
December 10, 2014 at 9:58 am #558136<em>@Ninja Lead 441018 wrote:</em><blockquote>To add the background in JA Masshead module, you can try this step:
+ Create the templates/ja_nuevo/html/mod_jamasshead/default.php file and add new code below:
<?php
defined('_JEXEC') or die('Restricted access');
?>
<div class="ja-masshead" <?php if(isset($masshead['params']['background'])): ?> style="background-image: url(<?php echo $masshead['params']['background'] ?>)" <?php endif; ?>>
<h3 class="ja-masshead-title"><span><?php echo $masshead['title']; ?></span></h3>
<div class="ja-masshead-desc"><span><?php echo $masshead['description']; ?></span></div>
</div>Let me know if it helps.</blockquote>
Just a follow up to this. We tried this code and it didn’t work.
What i noticed was in the code you showed you had ja-masshead when in fact on our site at least the class is known as jamasshead (no dash). Removing the dash solved the issue.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
December 10, 2014 at 10:06 am #558140<blockquote>
Hi, thanks for getting back to me. This solution worked perfectly after some slight alteration to the code you posted, the classes should’ve been ‘jamasshead’ as opposed to ‘ja-masshead’ (at least for me, anyway). Thanks a lot for the help!
</blockquote>I just received your replied from ticket system. Have you sorted out it?
-
AuthorPosts
Viewing 15 posts - 1 through 15 (of 15 total)This topic contains 15 replies, has 7 voices, and was last updated by Ninja Lead 10 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum