hello,
I am new user of wordpress and theme vantage.
As wordpress advice, I just create a child theme with this code:
/ *
Theme Name: Vantage child
Description: Child theme for Vantage
Author: Pamela The future
Template: Vantage
* /
import url (“../ vantage / style.css”);
# {style1
float: left;
}
Now I want to create anchors on my homepage and I do not know how. I saw on the net, it first had to create the anchor, but what file? what code should I add? Then how to create the link to the anchor?
Is this possible with the theme vantage?
Thank you in advance for your help.
PS : Sorry for my bad English.
Hi Pam
Perhaps take a quick look at your child stylsheet. Your first ID should proably look more like this:
If you’re using this more than once on a page it should be a class, not an ID.
There are already many ID’s in your home page that you could use right now.
1. Step one: learn how to use your browsers developer tool to inspect page source: https://siteorigin.com/basics/modifying-theme-design-with-custom-css/.
2. Step two: Inspect the page source where you’d like to link to and find an ID.
3. In your menu or wherever you’d like to link from add a link and place a hash in front of the ID name.
For example if we were linking to the Latest Posts heading on our demo home page: http://demo.siteorigin.com/vantage/ we could link to:
Thanks for your answer
Do you mean with vantage theme, I don’t need to create a child theme?
In this case, can I remove my child theme?
I understand step 1, but for steps 2 and 3, I don’t see how I create my link to the anchor on the page
For example, I spotted a place on my home page that looks like this:
I would like when the user clicks on the slider, it accesses this text area on the page.
How do I set up my link ?
……….
Thank you in advance for your help.
Thanks for your answer
Do you mean with vantage theme, I don’t need to create a child theme?
In this case, can I remove my child theme?
I understand step 1, but for steps 2 and 3, I don’t see how I create my link to the anchor on the page
For example, I spotted a place on my home page that looks like this:
[/code ]
I would like when the user clicks on the slider, it accesses this text area on the page.
How do I set up my link ?
.......... [/code ]
Thank you in advance for your help.
Thanks for your answer
Do you mean with vantage theme, I don’t need to create a child theme?
In this case, can I remove my child theme?
I understand step 1, but for steps 2 and 3, I don’t see how I create my link to the anchor on the page
For example, I spotted a place on my home page that looks like this:
I would like when the user clicks on the slider, it accesses this text area on the page.
How do I set up my link ?
Thank you in advance for your help.
For sure.
When using Vantage or any other theme you don’t need a child theme unless you’re editing theme files at a code level.
The link to the anchor ID needs to come from wherever you’re linking from. So if you’re linking from your menu you add the link from Appearance > Menus. If you’d like for the link to be located in the slider then the link needs to be created in the slider.
So if #pg-20-2 is the ID you’re linking to, that’s the link you’ll add as your url in the slider.
Thank you, it works! :-)
Super, glad to hear you made progress here. All the best.