So right now i have it set up so that the width of #theme-column is set at first in the custom fields. What i want is to when acf loads i want it to check acf for if the new #theme-width exists and then override that width with the new width. This is what i have so far.
//Checks for any theme-width so that it might reflect in theme-column on the page
//alert ('theme-width exists');
$(this).closest('#theme-column').css( "width", "80%");
var column_width = $(this).closest('#theme-column').css( "width");
This will show that the width has changed but when the page loads it stays at the default width. I don’t know what im doing wrong.
Dang it actually that didn’t work exactly as expected. It initially assigns the width as the new width but it doesn’t stick and goes back to whatever the default width is. When i change #theme-column on load, it goes right back to the default width
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users