Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / Add some titles h1

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

Add some titles h1

More
8 years 9 months ago #21113 by loic
Replied by loic on topic Add some titles h1
You're welcome :)

Best regards.
More
8 years 9 months ago #21204 by nocturna
Replied by nocturna on topic Add some titles h1
Hello Loic, good morning,

I copied the file default.php following signs that You have given me.

I think I now have to modify the contents of this file in the folder of my template.

I do not see clearly where I have to add the code to add the H1 I need. I do not know much PHP language. :blink:

Can you help me a little please?

Can you tell me where I should add the code and how it should be exactly that line of code?

Can you give me an example?

Thank you very much,

Best regards,
J Andres
More
8 years 9 months ago #21213 by loic
Replied by loic on topic Add some titles h1
Hello,

In the list view at the line 53, you have the name of the category, to change it to a H1, modify it like this :
echo '<h1>'.JText::_($this->list_name).'</h1>';

Best regards.
More
8 years 9 months ago - 8 years 9 months ago #21240 by nocturna
Replied by nocturna on topic Add some titles h1
Thank you for your response and your help Loic,

It worked perfectly!

A little more about this topic please I have some questions:

For example:

I want to add an H1 title in the following items in the menu AdsManager:

- My profile
- My Ads
- My Favorites

I also want to add a title h1 to the result of the searches in the search module. (I attached the following image):



All this is done in the default.php file?

How can I find out which line of code must make the changes?

That is, how I can find out what the line 53 corresponds to the result of the item 'All Ads'?

Is there any mechanism or method of inspection?

One more thing, please,

When searching with the search module I have observed that the result appears repeated the link "Advanced Search". Is this correct? Can I delete it somehow?




Many thanks.

Best regards,
J Andres
Attachments:
Last edit: 8 years 9 months ago by nocturna. Reason: add text
More
8 years 9 months ago #21241 by loic
Replied by loic on topic Add some titles h1
Hello,

If you want to do that for all the views, you need to find the correct files.

On the frontend, all the view are in 'components/com_adsmanager/views/', for the list Allads, it will be the folder 'list', for the result page 'result', etc...
You can custom the code to find the correct line, if it is not correct, you can undo what you've done and try another line.

Best regards.
More
8 years 9 months ago #21244 by nocturna
Replied by nocturna on topic Add some titles h1
Loic thank you very much for your reply and help.

I will try to solve it this way.

Just one more thing please:

After changing the code for the item H1 'All ads' he has left me a loose image above the title.




How I can remove this picture?

I have not found any option in the backend that allows me to do so.

Thank you very much again.

Best regards,
J Andres
Attachments:
Time to create page: 0.191 seconds
Powered by Kunena Forum