Welcome, Guest
Username Password: Remember me

TOPIC: Blog on Joomla

Blog on Joomla 15 years, 5 months ago #92

  • joomtorial
Great!

A few things, all needs to be done in your template's blue2template the index.php file.

First the favicon:

In the index.php file you need to add a little line as I think that template doesn't have a favicon set.

First of all, make sure your favicon icon file (favicon.ico) is in the folder blue2template/images.

Second, add this line in before the html code </head>

<link rel="shortcut icon" href="<?php echo $template_path; ?>/images/favicon.ico" />


Once you have changed this, browsers and cache (temporary files are the worst for favicons, sometimes they keep the old for days and all of a sudden the new shows. When you have made all the changes, let me know, I will help you look if the favicon has changed.

Then a few additions for the Tweet modules which I think will make it look a bit more fitting. Again in the same index.php file:

Find:
<?php if ($this->countModules('tweetfollow')) : ?>
<div align="center">
<jdoc:include type="modules" name="tweetfollow" style="none" />
</div>
<?php endif; ?>


Change into:
<?php if ($this->countModules('tweetfollow')) : ?>
<div align="center" style="margin-left:40px">
<jdoc:include type="modules" name="tweetfollow" style="none" />
</div>
<?php endif; ?>


For the TweetThis Module I think it sticks too much too the top, in the index.php.

Find:
<?php if ($this->countModules('tweetthis')) : ?>
<div style="float:right;margin-right:10px;">
<jdoc:include type="modules" name="tweetthis" style="none" />
</div>
<?php endif; ?>


Change into:
<?php if ($this->countModules('tweetthis')) : ?>
<div style="float:right;margin-right:10px;margin-top:16px">
<jdoc:include type="modules" name="tweetthis" style="none" />
</div>
<?php endif; ?>
The topic has been locked.

Blog on Joomla 15 years, 5 months ago #93

  • darianr
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 0
getting this error after i made those 2 changes:

Parse error: syntax error, unexpected $end in /hermes/web05/b267/moo.bluelady82/templates/blue2template/index.php on line 113
The topic has been locked.

Blog on Joomla 15 years, 5 months ago #94

  • joomtorial
Be sure to copy it correct!

This error looks like you might have forgotten to correctly paste the last <?php endif; ?>

To make things easier, I have included the changed index.php. Unzip the zip file and you'll find a corrected index.php. Just overwrite this one with the old one in your 2blue template folder through FTP.
Attachments:
The topic has been locked.

Blog on Joomla 15 years, 5 months ago #95

  • darianr
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 0
ok i got it! yeah!

thank you!!!


Maybe I will learn how to create my own joomla template by the time I am done...
The topic has been locked.

Blog on Joomla 15 years, 5 months ago #96

  • joomtorial
OK, for the favicon.ico

"throw" that in the root folder of your Joomla installation in "images"

Then it should show. So: In your Joomla Folder > Images
The topic has been locked.

Blog on Joomla 15 years, 5 months ago #97

  • joomtorial
Hi,

I see your favicon! Favicons are the worst when it comes to browser cache (especially internet explorer and safari), but I can assure you, it's showing!



Then another thing, the Tweet Follow module after you removed all other modules is "hugging" the top quite a bit. Without having to adjust the template again, we can use a simple trick to create extra space.



Under the menu Extensions, you go to Module manager. Once you are there, you click on "New" at the right top. On that page you choose "Custom HTML". The module position is the same as your Tweet Follow Moudle > tweetfollow. This way the modules will stack and we can use the extra space we create in this new module to be on top of the real Tweet This. Give that new module a convenient name like: Extra space Tweet This.

You then get a window where at the bottom you see your WYSIWYG Editor. We now need to put in a simple line of html to create some space, but we can't do it in the WYSIWYG Editor, we will need the html editor. This is very easy. in the buttons of the WYSIWYG Editor is a tiny button which has "html" on it. Click that html button.



When you have clicked that, a "HTML Source Editor" pops up.

In there type (or copy/paste) this line:

<div style="height:16px">&nbsp;</div>


So it will look like this:



At the left bottom of that HTML Source Editor, click on the "Update" button. And now save your module at the right top with "Save"

In your module list, you can change orders. Make sure your new created module in tweetthis position is above the real Tweet This module. you can use the arrows, or you can put in the order with the numbers yourself. Be sure to save when you change the numbers yourself, to save with the tiny save button which is circled in the picture. When using the arrows, this save button is not necessary.

The topic has been locked.
Time to create page: 0.26 seconds

Joomla Video Tutorials by Joomtorial