• Resolved delirium6

    (@delirium6)


    Hello,

    I found this nice pulg-in, but I’m searching a solution to put the credit under the legend of a media.

    There is a solution ?

    Regards.

Viewing 15 replies - 1 through 15 (of 45 total)
  • Plugin Author pepe

    (@pputzer)

    Sorry, what do you mean by “legend”? The <caption>?

    Thread Starter delirium6

    (@delirium6)

    Yes the caption.

    Plugin Author pepe

    (@pputzer)

    So you want the credit to appear below the caption? I don’t have a specific recipe, but that should be achievable with CSS. It really depends on your site markup. If necessary, you can use various filter hooks to adjust the output of Media Credit.

    Are you using the Block Editor or the Classic Editor?

    Thread Starter delirium6

    (@delirium6)

    Yes I want :
    Picture
    Caption
    Credit

    I have the last version of WordPress and i Use the Classic Editor plug-in.
    We can try to work together to put an option to your plug-in for that.

    Plugin Author pepe

    (@pputzer)

    Sure! Do you have a target markup/styling you’d like to achieve? If not, that would be something you need to provide before I can have a look at what needs to be done to get there.

    Thread Starter delirium6

    (@delirium6)

    I want a result like that : Result of credit
    So i just need a special block with a class which i can change or specify.

    Plugin Author pepe

    (@pputzer)

    Thank you, I understood that. However, I need the technical markup you’d like to achieve*, otherwise we are veering into custom design work (which would be beyond the scope of plugin support in these forums).

    * If you have a live example page you’d like to replicate, I could probably work with that.

    Thread Starter delirium6

    (@delirium6)

    Thanks to you, i don’t have an example, the goal is to get the result on the picture. Now, i have this in the middle of this page : live site

    If you see, the <p> with id “caption-attachment-86″ have the caption which outside and under the div of the media container which have the credit. The goal is to put the <span class=”media-credit”>Crédit</span> in a <p> or <div> after the <p id=”caption-attachment-86″ class=”wp-caption-text”>légende</p>.

    Regards

    Plugin Author pepe

    (@pputzer)

    Thanks, I’ll give it a go in the next few days.

    Thread Starter delirium6

    (@delirium6)

    Hi,

    thank’s to you, i will test your new version.

    Regards

    Plugin Author pepe

    (@pputzer)

    Hi @delirium6, can you please post an example of what that image and surrounding shortcodes looks like in the HTML editor?

    Thread Starter delirium6

    (@delirium6)

    Hello,

    I have install your new version : 4.1.0
    But I don’t see any parameter for thsi feature.
    I put another media in the same post. here you have the html editor :
    New media in the HTML post editor

    Regards

    Plugin Author pepe

    (@pputzer)

    Sorry @delirium6, I should have bene more cleaer. I have only started looking at this issue after finalizing 4.1.0. Can you please switch to the “Text” editor tab (from “Visual”)? I’d like to see the nesting of shortcodes. (The “Visual” editor uses a TinyMCE plugin to transform shortcodes to a pseudo-WYSIWYG). I’ll assume it’s something like this (as produced by the by default plugin when using the classic editor):

    [caption][media-credit]<img>[/media-credit] Caption text[/caption]

    It is possible to get the markup structure you want with the current version, but to so, you have to override the [caption] shortcode. What I’d like to explore is whether I can build some filters that make this easier to to without the overhead of doing that.

    Thread Starter delirium6

    (@delirium6)

    OK you want this so :

    [caption id="attachment_90" align="alignnone" width="250"]
    
    [media-credit name="Crédit" align="alignnone" width="250"]<img class="wp-image-90 size-medium" src="https://aqui.e-node.net/wp-content/uploads/2020/01/img_id_38459-250x152.jpg" alt="Alternative text" width="250" height="152" />[/media-credit] Caption[/caption]
    Plugin Author pepe

    (@pputzer)

    Thank you!

Viewing 15 replies - 1 through 15 (of 45 total)
  • The topic ‘Credit and Legend position’ is closed to new replies.