Artisteer - how to change the button "Read more ..." back link
| Programming, Webdesign |
Recently I started working with an excellent tool Artisteer, which can save time, focus on web design and emerge from the carousel error when creating templates. Unfortunately it is not perfect and there are a few incomplete nature. One is that with Artisteer its template changes automatically link the whole article (Read more ...) button. But this is not always the customer wants. So to change it back?
Creating a template in my case always needs a little adjustment Artisteer. Here it is not set up everything and graphics or customer restrictions are not interested in the program (which is good). Some things are so just be yourself and then make sure to appreciate the knowledge of the code :-)Already at the first template created by the program, I noticed that the current links Read more ... has become key. Well, it looks interesting and gives the site with little light, but Jax wrote in the introduction, not everyone wants it.
Artisteer itself in a similar menu adjustment is not available, so you can do is reach into what he created.
If you look at the source code with a button instead of line, there is the following sequence, which shows the preview article:
<! - Article-content ->
<div class="art-article"> <p> preamble of the text </ p>
</ Div>
<p>
<span class="art-button-wrapper">
<span class="r"> </ span>
<a class="readon art-button" href="odkaz...">
Read more ... </ A> </ span>
</ P>
<! - / Article-content ->
It is evident that there is a link defined as a button, so you will need to reach into the definition of HTML templates.
Editing style does not help us because the change in art-button-wrapper, we have changed all the buttons on the web.
Therefore, you'll reach the directory templates / nбzev_љablony / html / com_content where the definition of HTML code to display the body of pages, including articles. We will be interested in some lines 85-105 (will vary by the type and complexity of your template) in your category / blog_item.php, section / frontpage blog_item.php and / default_item.php.
if ($ this-> item-> params-> get ('show_readmore') & & $ this-> item-> readmore) (
?>
<p>
<span class="art-button-wrapper">
<span class="l"> </ span>
<span class="r"> </ span>
<a class="readon art-button" href="">
<? Php
if ($ this-> item-> readmore_register) (
echo str_replace ('', '', JText ::_(' Register to read more ...'));
) Elseif ($ readmore = $ this-> item-> params-> get ('readmore')) (
echo str_replace ('', '', $ readmore);
Else ()
echo str_replace ('', '', JText:: sprintf ('Read more ...'));
)
?>
</ A>
</ Span>
</ P>
<? Php
)
Style "readon" occurs in Joomla templates, Artisteer nediefinuje it alone. With style readon in other templates, you can define a style of display line in the template of Artisteer is defined but the hard button style. It is therefore easiest to simply remove the definition of style. Remove the line styles and r l a clear definition of art-button-wrapper. For the art-line button. If you want to define your own style link 'Read more, leave here readon parameter. The but do not forget to define your template.css. Alternatively, use your own name for the style that will define.
Code should now look something like this:if ($ this-> item-> params-> get ('show_readmore') & & $ this-> item-> readmore) (
?>
<p>
<span>
<a class=" vбљ_styl_odkazu "href="">
</ A>
</ Span>
</ P>
<? Php
)
and extract the HTML page it as follows:
<! - Article-content ->
<div class="art-article"> introductory article </ div>
<p>
<span>
<a class=" vбљ_styl_odkazu "href=" link to the full article ">
Read more ... </ A>
</ Span>
</ P>
<! - / Article-content ->
where vбљ_styl_odkazu's own css style definition link to the full article.
| < Prev |
|---|

