• I want to pull a specific div from one of my pages, and embed it into a sidebar widget so I can post this widget on multiple pages.. Any suggestion how this may be accomplished?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Under Appearance / Widgets, select a ‘Text’ widget where you can copy and paste your selected div then add this text box under Sidebar (active) that you’ll like to appear on your site.

    Thread Starter nib_star

    (@nib_star)

    Yeah that’s the easy way and the last resort, but what I have is something slightly different. I want to be able to edit everything on page editor using ‘user friendly’ tools (divi builder) and not mess around with the code.. I was thinking maybe some ‘PHP code’ that calls/gets that specific DIV which I can insert into that TXT widget.. any suggestions?

    If it was for me, Id do the copy/paste div code, but this is for someone who does not know too much editing.. want to make it as simple as possible for them to update the site in the future..

    Oh I see, in that case I would suggest contacting the theme creator for support.

    Thread Starter nib_star

    (@nib_star)

    I dont think it has anything to do with the creators of the theme, no disrespect.. But more of a general PHP code problem.. all I need to do is pull that line of code using a scrip 😮

    No offence taken 🙂

    Since you’re after a PHP solution try asking in Stack Overflow?

    I’ll be interested in finding out your solution too.

    Thread Starter nib_star

    (@nib_star)

    Hey, thanks for the tip!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Pulling specific 'Div' using widget’ is closed to new replies.