0
Welcome Guest! Login
0 items Join Now

Add a div style

    • MrCodexCY's Avatar
    • MrCodexCY
    • Rocketeer
    • Posts: 73
    • Thanks: 0
    • Web Design Specialist

    Add a div style

    Posted 11 years 3 months ago
    • Greetings,

      I have a question about my Joomla! 2.5 rt_fresco tempalte.
      When somebody is viewing an article, for example here:

      www.leetguru.com/guru-news/world-of-warc...e-posts-tcg-art.html

      I want to put a div style around the article content, can a team member please tell me which file does rt_Fresco echo the content so I can go and add the div style before?

      Thanks in advance,
      Artemis Chaitidis
    • Even a broken clock is right twice every day.
    • MrCodexCY's Avatar
    • MrCodexCY
    • Rocketeer
    • Posts: 73
    • Thanks: 0
    • Web Design Specialist

    Re: Add a div style

    Posted 11 years 3 months ago
    • Need somebody to assist asap please.
    • Even a broken clock is right twice every day.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Add a div style

    Posted 11 years 3 months ago
    • not sure if I understand you right ...
      do you want to a modsuffix to the component area?
    • MrCodexCY's Avatar
    • MrCodexCY
    • Rocketeer
    • Posts: 73
    • Thanks: 0
    • Web Design Specialist

    Re: Add a div style

    Posted 11 years 3 months ago
    • Greetings again,

      Thank you very much for your reply sir. In a few words, I want to add a div style, around article display (com_content), but I cant find where it is. When I use frescoblog, I found a way to add a div around festivals, by changing code in the file frescoblog_item.php , but I dont know where to put the div code when the full article is viewed.

      Kind Regards,
      Artemis Chaitidis
    • Even a broken clock is right twice every day.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Add a div style

    Posted 11 years 3 months ago
    • you need to create an override for com_content (components/com_content/views/article/tmpl/default.php)
      here
      templates/rt_fresco/html/joomla/2.5/

      see the joomla docs for more information
    • MrCodexCY's Avatar
    • MrCodexCY
    • Rocketeer
    • Posts: 73
    • Thanks: 0
    • Web Design Specialist

    Re: Add a div style

    Posted 11 years 3 months ago
    • Thanks for the promt reply.

      I have checked the documentation helped me a lot, but when I change anything in there, it doesn't reflect to the article. Is this file the correct file?

      Kind Regards,
      Artemis Chaitidis
    • Even a broken clock is right twice every day.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Add a div style

    Posted 11 years 3 months ago
    • did you copy the file default.php into
      templates/rt_fresco/html/joomla/2.5/com_content/articl/
    • MrCodexCY's Avatar
    • MrCodexCY
    • Rocketeer
    • Posts: 73
    • Thanks: 0
    • Web Design Specialist

    Re: Add a div style

    Posted 11 years 3 months ago
    • Yes, and to check it I went and add a "Test" after the h2 title to check if works, but doesnt work. Example:


      <?php if ($params->get('show_title')) : ?>
      <h2>test
      <?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?>
      <a href="<?php echo $this->item->readmore_link; ?>">
      <?php echo $this->escape($this->item->title); ?></a>
      <?php else : ?>
      <?php echo $this->escape($this->item->title); ?>
      <?php endif; ?>
      </h2>
      <?php endif; ?>

      On forums they say something you need to enable html5 on your template but I think its already enabled by default for rockettheme right?

      Kind Regards,
      Artemis Chaitidis
    • Even a broken clock is right twice every day.
    • MrCodexCY's Avatar
    • MrCodexCY
    • Rocketeer
    • Posts: 73
    • Thanks: 0
    • Web Design Specialist

    Re: Add a div style

    Posted 11 years 3 months ago
    • MrCodexCY's Avatar
    • MrCodexCY
    • Rocketeer
    • Posts: 73
    • Thanks: 0
    • Web Design Specialist

    Re: Add a div style

    Posted 11 years 3 months ago
    • I just saw it worked for other h2 of the website, but why not working for that article? The menu is under fresco blog menu. Do i have to change something else?

      Here is the menu item type:
      Articles ยป Fresco Blog


      Kind Regards,
      Artemis Chaitidis
    • Even a broken clock is right twice every day.

Time to create page: 0.058 seconds