VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

[SOLVED] class "section contacts has-ptb" incosistent bg
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [SOLVED] class "section contacts has-ptb" incosistent bg

[SOLVED] class "section contacts has-ptb" incosistent bg 16 Oct 2019 15:52 #11946

Hi,

I'm at a loss. I can't figure out why the background image of the div class="section contacts has-ptb" is showing correctly on the main page, but not on subpages. Eg pic 1 shows the front page, pic 2 shows a subpage. As far as I can tell the applied classes on both pages are the same.

Why does the same module show a background image on one page and not the other?
Mainpage
A Subpage
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.
  • Attachment This image is hidden for guests. Please log in or register to see it.

  • Posts:16
  • d0ben
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: class "section contacts has-ptb" incosistent bg 18 Oct 2019 02:54 #11952

Hi,
You can edit file templates/jf_crypto/html/mod_custom/default.php, modify:
 
data-image-src="<?php echo $params->get('backgroundimage'); ?>"
 

to:
 
data-image-src="<?php echo JUri::root(true) . '/' . $params->get('backgroundimage'); ?>"
 


joomfreak

  • Posts:2916
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: class "section contacts has-ptb" incosistent bg 18 Oct 2019 13:25 #11954

Oh wow! That solved it! Much thanks to You!

  • Posts:16
  • d0ben
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.87 seconds
Tuesday 26 January 2021

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.