[Support request] Associate my post to table of content in the side bar

Home Forums Support [Support request] Associate my post to table of content in the side bar

Home Forums Support Associate my post to table of content in the side bar

Viewing 14 posts - 16 through 29 (of 29 total)
  • Author
    Posts
  • #1356445
    Simone

    Hi David,
    This is what I did, but it doesn’t work.

    #1356464
    David
    Staff
    Customer Support

    Does the Table of Contents work if you add it in the Post editor so it is part of the content ?

    #1356476
    Simone

    Yes, I tried and it works fine. I even disable the show TOC on posts in the setting to see if it would work as well when placing the shortcode in the HTML of the article and it works well.
    I tried to put my picture in the sidebar and the code shows instead of the picture

    #1356829
    David
    Staff
    Customer Support

    I get the impression that the plugin only works if the shortcode is added to the page content.
    What you could do is disable the sidebar. Then use a GenerateBlocks Grid to create your 2 columns in which you can add your TOC

    #1356836
    Simone

    How come it works on the site I sent you previously, it’s the same theme and same plugin:

    #1357128
    Leo
    Staff
    Customer Support

    This page here: https://www.affiliateresources.org/lifevantage-mlm-review/

    Is all using Elementor and not using a sidebar.

    #1357366
    Simone

    Ah, I see now. Too bad:(

    Ok, but how can I put a picture in the widget sidebar of a related post? Is it possible?

    #1357563
    David
    Staff
    Customer Support

    What other widgets are you using on your site?
    Can you share a link to the page where they are displayed and the TOC is required?

    #1357617
    Simone

    I just want now to put a picture in my About page sidebar.

    Is it possible to do this?

    #1357687
    David
    Staff
    Customer Support

    in Appearance > Widgets you can add an Image Widget to your sidebar.
    Of if you want to add other content with the image then add a HTML Widget, and add this for your image ( taken from the content of your About page ):

    <img title="Daniella the owner of Getmoresteps" src="https://getmoresteps.com/wp-content/uploads/2020/06/Daniella-Picture-150x150.jpg" alt="Daniella Owner of Getmoresteps" width="150" height="150">

    #1357727
    Simone

    Should I put this code in the element “Hook”?

    #1357735
    David
    Staff
    Customer Support

    Nope. Go to Appearance > Widgets and drag a HTML widget into the Right Sidebar. Then add the code to the HTML Widget.

    You can do the same thing in Customizer > Widgets > Sidebar – Add Widget.
    Its exactly the same but you get to see what it update realtime.

    #1357739
    Simone

    I understand but then it won’t be related to my about page.
    Is it possible to relate the picture to the page itself?

    #1357873
    David
    Staff
    Customer Support

    Try the Content Aware Sidebars plugin:

    https://en-gb.wordpress.org/plugins/content-aware-sidebars/

    With it you will be able to select which pages your widgets are visible on.

Viewing 14 posts - 16 through 29 (of 29 total)
  • You must be logged in to reply to this topic.