WP API and Visual Comoposer
-
Hi WP API team,
We were trying to update a page, sending a data with Rest API. When we are setting a text it works, but it doesn’t work with background images. Is there any other place where I need to set the background image?
Here is the example of what I send
[vc_row full_width=”sretch_row_content_no_spaces” css=”.vc_custom_177205{background-image: url(https://visitgyumri.buildatourapp.com/wp-content/uploads/sites/2/2016/04/Isahakyan2.jpg?id=2590) !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}” el_class=”homepage-bg-images”][vc_column][vc_custom_heading text=”Welcome to Gyumri” el_class=”about-titles”][vc_column_text el_class=”must-see”]<p class=”homepage-section-links”>Must <span class=”homepage-section-links-large”>See </span>></p>[/vc_column_text][/vc_column][/vc_row]
It works when I put the same text in the WP dashboard in edit mode, but doesn’t work when I post via WP Rest API.
I have also tried to post only text, then updated that text to see if there is any difference between the posted and updated versions.The posted text didn’t work, but the updated one did.
Any support will be great.
Thanks,
Gohar
- The topic ‘WP API and Visual Comoposer’ is closed to new replies.