Hi,

Replying to an old thread is probably not the best way: https://www.joomlart.com/forums/d/34292-com-content-override

I have the same problem/code with JA Stark J4 override: html/com_content/article/project.php ;
param imageBG does not override/insert the default background which is somehow set in: media/t4/css/13-sub.css

When a menu item is present and the global layout is set the intro image is set, but loading the masthead from project.php seems not to work.

NEW INFORMATION:
In ja_stark/html/layouts/joomla/content/masthead.php I found "$imageBg", but in html/com_content/article/project.php "$imagesBg" is used. I would like to know how Masthead is supposed to work in this template.
Right now I have a temporary solution based on Masthead default article full_image, but the hardcoded image is still loading underneath: <div class="bg-overlay bg-overlay-image">&nbsp;</div> (somehow inside Masthead div).

I would like to know the solution to this and where this sub css comes from.

Thanks

    marty-harty I updated the solution here:

    You will need to update 2 files:

    /templates/ja_stark/html/layouts/joomla/content/masthead.php
    /templates/ja_stark/html/com_content/article/project.php

    mastheadphp.zip
    979B
    projectphp.zip
    3kB

    Note that if you want to set fulltext image as background image of masthead section, you open the file: /templates/ja_stark/html/com_content/article/project.php

    Look for this line of code:

    $imagesBg = $images->image_intro;

    change it to:

    $imagesBg = $images->image_fulltext;

      saguaros

      Thanks! This works with project layout without item menu.

      I found extra image inside masthead is loaded through T4:
      /plugins/systemt4/themes/base/html/layouts/t4/layout/section.php sets:
      $overlay = "<div class=\"bg-overlay bg-overlay-image\">&nbsp;</div>";

      /media/t4/css/13.css (14, 15, 18) sets:
      #t4-masthead .bg-overlay-image {
      background-image: url(/jadev2_data/sites/auto/qs.starkrtl.1567665789/images/demo/bg/section-5.png);
      background-size: cover;
      }

      Not sure if both are needed to load.

      Thanks

        marty-harty Kindly check that masthead section in Layout settings of template style ID:13 and see if you set the overlay background image for it or not.

        Write a Reply...
        You need to Login to view replies.