How to edit a Joomla template. Change in appearance

How to change website background to Joomla 3

Dear readers, we continue to publish materials dedicated to Joomla 3. Today we'll talk about how to change the background of your site. It's pretty easy to do this in Joomla.

Change background on Joomla website

First you need to open your site in any browser, for example we use the browser Google Chrome.

1) We right-click on the place on your site where you want to change the background and select the item "View code"(name may differ in other browsers).

For example, we decided to change the background of our site to red. Therefore, we click with the mouse on the right or left side of the site.

2) A window will appear in front of us, where the source code of the page will be indicated.


Here we are interested in the valuebackground-color. As you can see, the site is set to a grayish tint. Let's change it to bright red. To do this, click on the square with the color and select the shade we need. Remember the digital designation of this color (for example, for white itf000000 ).


Now, when we close the source code window, we can see that the background color of the site has indeed changed.


Pick the color you want and move on to the next step.

3) Having chosen the option we need, you need to set the setting for this color in the administrative panel of your site. To find out exactly where the file responsible for the background color is located, let's open the "View Code" window again.

Now hover over the title next to the tag body and you will see in which file the code responsible for changing the background color is located. By the way, the numbers after the colon indicate the line number where this code is located.


We launch your control panel and find this file.


In this article, we will look at how to edit the appearance of a template. Joomla.

Any person who creates a site wants to make his site unique, or at least not like others.

Now almost all templates for Joomla are publicly available, anyone can download and install them on the site.

Let's take an example of the modification standard template Beez5.

Changing the template background (background)

I use Chrome browser, press F12 or right-click on the desired location and click "View Element Code".

As seen in the figure, for the background template responds tag body with style background.

Styles set background color #EEE and a background image (the path to it). It is these parameters that give us the background of the site.

To change them, you just need to replace these parameters (specify a new color and a path to a new image).

All changes are made in the file that is specified in the developer panel, here it is beez5.css, after the colon there is a line in which the parameter needs to be changed, we have line 19.

The path to the file can be viewed by hovering over the name with the cursor.

Website logo change

Changing the logo is very easy and there are several ways to do it.

Method 1:

Just like in the first method, hover over the logo, right-click and click View Element Code. All we need to know is the address (path) to the logo. Now we make our logo, give it the same name (fruits.gif) and just replace the old logo with it.

Method 2:

This method is the easiest, but not found in all templates. Go to: Template Manager - Beez5 (style) - Specify the logo.

Method 3:

We do everything the same, only we replace not the file, but the path to the logo. As you can see in the picture, the picture is inserted through html, not through css. Therefore, you need to change the source code of the template. It's easy: Template Manager - Beez5 - Edit Template home page. Looking for a line with

and change the path to the logo to the desired one. In this template, the path is written on php because there is option #2. Therefore, it is better to use option #1 or #2.

Change the width of the template and blocks

Finding the main block div. As you can see in the picture, this

it is he who is responsible for the width of the site. We are watching css options- styles, find width and specify the desired width. After that we go to the file position.css, in line 33 we write the parameter and save the file.

Individual blocks are edited in the same way. We find the block, look and change the style.

Changing the color of text and links

All this is done in the same way. Right-click on the text and click View Element Code. We will be shown the block and block style responsible for the text parameters. The color of text and links is set by the -color parameter.

All files can be edited with editors like notepad++ or through the standard "editor" Joomla.

Template Manager - The desired template. Here you are given a list of files (index.php, 404 page template, print page template, styles.).

That's all.

Your opinion is important to us. Write your comments.

This tutorial provides a quick guide to working with archived articles in Joomla 3.x.

Archiving articles allows you to save them on your Joomla site for the future, but makes them less visible to your site visitors, since such articles are no longer displayed with the rest of the site content. Once archived, these articles can only be viewed from the Joomla Archived Articles menu, the Archived Articles module, or by searching by article name using the built-in Joomla site content filter.

Archive Articles

Articles can be easily archived in the Article Manager. To do this, do the following:

Displaying a list of archived articles through a module

You can configure the Archived Articles module to display a list of archived articles sorted by month. Do the following:


Displaying a list of archived articles via the menu button

You can also create an Archived Articles menu button to display a list of the site's archived articles. Do the following:

    In the Joomla control panel, go to the section Menu, select the menu to which you want to add a new item and press the button Create (New) top right in the toolbar:

    Near the parameter Menu Item Type press the button Select. In the pop-up window that appears, open the tab Articles and choose type Archived Articles from the dropdown list:

    Now you can set the main settings for the menu item:


This is where the tutorial ends. Now you know how to work with archived articles in Joomla 3.x.

Hello readers of the No Zombies Allowed blog. Today I want to tell you about how change website background. With your own background, your site will be unique and stand out from the gray mass of copy-pasted templates. Changing the background of the site is not difficult enough and it is done in 10 minutes. And now I will tell you how to replace the background for the most popular engines - Ucoz, Joomla, WordPress.

We will change the background of the site using css styles. The background can be set in several ways:

  • Just color
  • Gradient
  • Repeating picture (pattern)
  • Semi-transparent image (png) and CSS color
  • static picture
body( //Just a color background:#FAFAFA; /* Background color */ //Gradient for all kinds of browsers. background: #1e5799; /* Old browsers */ background: -moz-linear-gradient(top, #1e5799 0% , #7db9e8 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1e5799), color-stop(100%,#7db9e8 )); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #1e5799 0%,#7db9e8 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient (top, #1e5799 0%,#7db9e8 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #1e5799 0%,#7db9e8 100%); /* IE10+ */ background: linear-gradient(to bottom, #1e5799 0%,#7db9e8 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1e5799", endColorstr="#7db9e8",GradientType=0 ); /* IE6-9 */ // Repeating image background: url(images/bg.jpg) repeat-x /* Background image */ // Transparent image + color /* The advantage of this method is that you can choose texture, and then quickly change the color No with CSS*/ background-image: url(images/bg.png); /* Image path */ background-color: #c7b39b; /* Background color */ // Static image background-image: url(images/bg.jpg) no-repeat /* Background image */ /* Static image, usually large */ )

Of course, you need to choose only 1 method from the presented ones. Instead of #FAFAFA and others like it, put your own color. Next in the CSS body, you need to insert your site's background style.

How to change the background of the Ucoz website

In order to change the site background on Ucoz you need to go to: Control Panel - Design - Design Management (CSS) - Style Sheet (CSS). Next, find the code by type:

Body ( font: 13px Arial, sans-serif; line-height: 1.5; background-color: #FFF; )

And then change to your background one of the suggested methods above.

In the screenshot, I highlighted with a red line where to go and what style to change.

It is preferable that you do not change anything other than background. Those. don't touch padding, line-height, font and the like - it can change not only the background of the site :)

How to change the background of a Joomla site

To change the background of the site on Joomla you need to go to the administration panel, then Extensions - Template Manager and select the "Templates" tab

You will see all CSS files of your template

Typically, the CSS that stores the background styles is template.css or main.css. If you still don't know which CSS file you need, use . After you have chosen the desired css file click and edit. Find the body style in this file and change the background

Body ( background: #fff; color: #000000; font-size: 100%; padding: 0px; text-align: center; )

How to change the background of a Wordpress site

Do you need to change the background on WordPress? - it will be no more difficult to do than on any other. To change the background, go to the admin panel, then Appearance - Editor.

This will open the main CSS file of your template. All you need to do is find the body styles (they are usually at the very beginning of the file) and replace the background with yours.

I have tried to explain as briefly as possible. change website background. If I missed something and something is not clear to you, then write in the comments. Thank you for your attention :) Sincerely yours No Zombies Allowed.

Immediately make a reservation, this lesson is designed for those who are familiar with photoshop< и css.

So, it remains for us to change the site template. In order to change the template, we need to know what elements our pages consist of, i.e. their html markup and styles. The files we are interested in are located in the templates folder (templates)\siteground-j15-1 (our template). Those. full path - yoursite.ru/templates\siteground-j15-1.

In this folder, we see several files and folders: images for the template are stored in the images folder, style sheets are stored in the css folder, and the index.php file is responsible for displaying pages. So, open the index.php and template.css files (from the css folder) in Notepad or Notepad.

Let's take a look at the index.php file. In it, html markup is responsible for the arrangement of elements on the page. All that is included in or in- this is the program code responsible for displaying information from the database or connecting other files. For example, the texts of our articles, the name of the site... - all this is stored in the database and displayed on the pages using program code. To change the template, we are only interested in html markup, we don’t need to touch the program code, otherwise your site will stop working as it should.

Having studied the html markup, we will know exactly what elements our pages consist of, and accordingly we can change their appearance. But probably, you have already noticed that it is extremely difficult (although possible) to imagine the appearance of the page from the code. Of course, there is a way to make this easier, and its name is the Firebug plugin for firefox browser. After restarting the browser, the plugin icon (beetle) will appear in its lower right corner:

We click on it, a panel will open at the bottom of the browser window:


We need the HTML tab of this panel. It displays the html code of the page opened in the browser. When you move the mouse cursor over a code element, it is highlighted on the page. Right now we see only two page tags - head and body. If we click on the plus sign next to the body tag, then its contents (nested tags) will open. So we open until the tags of interest to us begin to be highlighted. The first such tag is


As you can see, it is responsible for the top of the site header. Now we are looking for this identifier on the page template.css

We can see that this div has a background image called header_top_middle.jpg (located in the images folder) that repeats horizontally. Go to the images folder, find the image header_top_middle.jpg, open it in photoshop program, increase it by 3 times (to make it better visible), select the blue color, fill it with brown, as on the sample site (this color in hex code is #671700) and save. We go to our site, refresh the page and see that a brown stripe has appeared:


Now we also need to replace the pictures on the left and right of this div, go back to FireFox, click on the plus sign next to

and see its contents:
- responsible for the left corner and
- Responsible for the right corner. We are looking for these identifiers in the page template.css


So, the left corner is the image header_top_left.jpg, the right corner is the image header_top_right.jpg. Open them in photoshop, enlarge them 3 times (to make it better visible), select the blue color, fill it with brown, as on the sample site and save. We go to our site, refresh the page and see the result:


Again, click on the tags in the Firebug panel, look for the tag responsible for the site header, and find it -