Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
Djey
tagDiv Member

I just want this behavior on the “flex-block-1” module (doesn’t matter if it’s apply automatically to others flex-block)

Previously, Anamaria show me a way that was working to edit link for the image and title through the “td_module.php” but I can’t see any class inside this document related to the term “button” or “read-more” to add the “_blank” (code to open it in new tab)

My guess is your technical team didn’t have name it in the same way, I just need to find the name class associated with the “read-more” (button with link) in the php file

Could you just provide me the name of this class in td_module.php file ?

Djey
tagDiv Member

Thanks Bettina, I understand that creating a specific behavior for a block requires development work

However I would just like to know to simply add the same functionality as given previously by Anamaria for the image and title but this to the button. It’s just about to let me know the name used as the appropriate class in the previous file

Anamaria, what is the class associated with ‘td-read-more’ (button link) called in the ‘td-module.php’file please?”

Djey
tagDiv Member

Thank you for your answer, it’s working now!

But I also have a button below my article that still opens in the same page. I’ve tried to search inside your PHP file for the corresponding div class: “td-read-more,” but there is no such thing there.

Could you please show me where I can edit the behavior of this button? (It’s also inside the flex-block-1 module.)

Are there any tricks/possibilities to apply all these changes about the “open in new tab” link only for “Flex block 1” without impacting other flex block modules? Like using the extra-class field or other CSS options, or maybe another option by modifying this PHP file or inserting a JS script on the block template?

Djey
tagDiv Member

Thanks for your answer but…

This did not work, does the PHP file you gave me allow modification of this block? [img]https://i.imgur.com/lMdJ8S1.jpg[/img]

I would also like to know if modifying the appropriate PHP file will impact the opening of links in other types of Flex blocks, such as Flex block 2, Flex block 3, etc. Ideally, I would only like to modify the behavior of the ‘Flex block 1’ module

Djey
tagDiv Member

Thank you for your quick answer Anamaria
I’ve bookmarked it in case it happen again in the future

Unfortunately I was too impatient to wait your answer, I had a backup of my website from a few days ago that I used to go back in time and that fixed for now the problem…

Viewing 5 posts - 1 through 5 (of 5 total)