0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

How to make a Component Title the same as an Article Title

  • How to make a Component Title the same as an Article Title

    Posted 13 years 6 months ago
    • How can I make the Title the same for Components as for Articles.

      eg: I installed a component "Phoca Gallery" and created a menu item for it.

      I want the Page "Title" to look the same as it does for pages that are articles.

      See the attached image.
      This image is hidden for guests.
      Please log in or register to see it.


      The page "About Us has the blue title background.

      The page "Image Galleries" does not.

      How can I make the Image Galleries page title to look the same as the About Us page please ?
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: How to make a Component Title the same as an Article Title

    Posted 13 years 6 months ago
    • Hi, can you post a link to your site? Most likely, you'll need to find the div in the phoca gallery page, in the phoca gallery files, and change the class name to the one we use, it may also be wrapped in a few different divs. Basically, you need to replicate the code from our template titles and insert it into the correct phoca gallery file, as they use a different format causing it to not be styled. I just need to see the code to tell you how.
    • The difficult we do immediately, the impossible takes a little longer.
  • Re: How to make a Component Title the same as an Article Title

    Posted 13 years 6 months ago
    • Cliff,

      Thanks for your reply

      Can I PM it you ? The dev site that is...

      I had it on my localhost, but just uploaded online so you can take a look for me.


      Thanks
      Greg
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: How to make a Component Title the same as an Article Title

    Posted 13 years 6 months ago
    • PM me your login and your FTP details and I'll fix it.
    • The difficult we do immediately, the impossible takes a little longer.
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: How to make a Component Title the same as an Article Title

    Posted 13 years 6 months ago
    • Hi, I updated that for you. I needed to modify your Phoca Gallery files, be aware that if you update phoca gallery you may lose the changes. The 2 files I modified are:
      components -> com_phocagallery -> categories -> tmpl -> default.php - line 8 - Main Page
      components -> com_phocagallery -> category -> tmpl -> default.php - line 21 - inner pages

      Basically needed to wrap their component heading inside - <div class="module-title"><div class="module-title2"><div class="module-title3"></div></div></div> - and add the H1 tag to the page title. They don't do that by default. Hope that helps.
    • The difficult we do immediately, the impossible takes a little longer.
  • Re: How to make a Component Title the same as an Article Title

    Posted 13 years 6 months ago
    • Cliff,

      Thanks you very much for your help.

      Great support indeed!

      From what you have done I can now figure how to do the same for the "Contact Us" page Im sure.

      Thanks again.

      Greg
  • Re: How to make a Component Title the same as an Article Title

    Posted 13 years 6 months ago
    • Cliff,

      Having the same problem with the Contact Page...

      It's an issue ive had many times before, to get a consistent look across all pages, its apprently simple things like this that give me grief often, Id love to know how to solve this..

      I think the file I need to edit is ...

      /templates/rt_radiance_j15/html/com_contact/contact/default.php

      But Im having difficulty getting it to work, even after looking closlely at the change you made for me ealier....

      Am I asking too much for your help again ?

      Thanks
      Greg
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: How to make a Component Title the same as an Article Title

    Posted 13 years 6 months ago
    • Hi, I got that. This file is in the template -> html -> com_contact -> contact -> default.php, line 38-42. Did the same thing. Hope that helps.
    • The difficult we do immediately, the impossible takes a little longer.
  • Re: How to make a Component Title the same as an Article Title

    Posted 13 years 6 months ago
    • Thank You Cliff, much appreciated.

      Greg
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: How to make a Component Title the same as an Article Title

    Posted 13 years 6 months ago
    • Glad to help :D
    • The difficult we do immediately, the impossible takes a little longer.

Time to create page: 0.096 seconds