Home>Support>create an embedded link on the same page

create an embedded link on the same page

By Pam, 9 years ago. Last reply by Andrew Misplon, 9 years ago.

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.

URL: http://www.imaginservices.fr

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Hi Pam

    Perhaps take a quick look at your child stylsheet. Your first ID should proably look more like this:

    #style1 {
    float: left;
    }
    

    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:

    #pgc-home-3-0
    
  2. 9 years, 10 months ago Pam

    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.

  3. 9 years, 10 months ago Pam

    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.

  4. 9 years, 10 months ago Pam

    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:

    <"pg-20-2" div class = "panel-grid" id => </ div>

    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 ?

    <a href="#pg-20-2"> .......... </a>

    Thank you in advance for your help.

  5. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    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.

  6. 9 years, 10 months ago Pam

    Thank you, it works! :-)

  7. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Super, glad to hear you made progress here. All the best.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More