Display portfolio title in raw HTML ‘widget’?

I’m completely new to code etc, but I really hope someone here can help me :).

I have a website with a bought theme that I use to find new homes for stray dogs. I use WPBakery Page Builder and all dogs are displayed in the portfolio area of the website.

Every dog has it’s own page with a button that says ‘Adopt NAME’. The title of the portfolio page being the dog’s name, is there a way to have that title automatically be added to the button text? So the button would say the same is it does now (‘Adopt NAME’), but I wouldn’t have to fill in the name manually, because the page title is shown automatically.

I have to add that I am able to copy the button to a raw HTML, so that’s where I wanted to add the page title. This is what I have now:

[button button_text=”Adopt” echo esc_html( the_title() ) dahz_id=”1528385203413-d9fc5116-fe59″ bg_color=”#003a3c” hover_bg_color=”#0c9fa4″ text_color=”#ffffff” hover_text_color=”#ffffff” button_link=”https://skylosstrays.com/hond-adopteren-griekenland/”]

Help??? 🙁

Read more here:: Display portfolio title in raw HTML ‘widget’?

Leave a Reply

Your email address will not be published. Required fields are marked *