benzinozor
Forum Replies Created
-
So apparently, I misunderstood what “changing the html output” meant, I’m sorry. I thought that by changing the output, the informations displayed on my image would change, apparently not.
I’m having an issue with foogallery because my website is both in english and french, and the gallery takes the informations directly on my images attributes (I can’t set those attributes in the gallery, and maybe do two galleries with the same images but different attributes, like I do with other plugins), so I wanted to change the displayed attributes by any other mean possible, via code for example, is there a way to do that ?
nothing in particular, I’m not really skilled at web dev so I’m only doing what you tell me to.
So my new title is indeed in the html code of the page, why doesn’t my gallery show it when I hover my image ?I tried what you said and realised there was a fg-image-wrap class in the a tag I was looking at before.
So I have the a with a data-caption-title attribute with the initial title, and a child img in it with a title attribute set to “test!” and there’s also the new data-title attribute we just added set to the inital title aswell. I’m not sure if I’m clear in my description, it looks a bit like that :<a href="..." data-caption-title="Initial title" > <span class="fg-image-wrap"> <img title="test!" data-title="Initial title"> </span> </a>
If you were talking about the console, I tried looking into it but I’m not sure what I’m supposed to see there.
- This reply was modified 4 years, 5 months ago by benzinozor.
- This reply was modified 4 years, 5 months ago by benzinozor.
Well I’m not, I mean I only have the foogallery in my page. I figured the code snippet was managed by something in the wordpress API and the “add_filter” line was the only thing needed for the code to be used ? Did I miss something ?
I checked the “Run snippet everywhere” radio button on the plugin page.
I changed the priority in the code, still nothing. Do I have to change the code snippet priority aswell ?
Maybe I’m using / testing something wrong elsewhere ? The page I’m using to visualise my gallery is a draft. When I update the code snippet, I just refresh the preview, is that ok ? I don’t know if there’s an option somewhere I missed to activate something.
Hi,
I added the echo lines because I wasn’t seeing any result, so I wanted to trace the code to see what’s going on. It allowed me to confirm that the code is used and that I go in that if and that my title is correct before the modification.
I tried to remove the lines and still nothing, sadly.
The code that I gave here is not the final one, this is just a test to try the feature and see where I can go with it, I plan to have more instructions in there in the future. So yeah, this is expected.