Custom Block dynamic font

Posted in: Newspaper
Post count: 45

Hi, I want to set up a custom block on the front page where the news articles should be in. The reason for that is that I want the text to dynamically adapt so I do not have to go in manually and edit it for each post I post.

I have looked at a plugin that does this for me: https://wordpress.org/plugins/wp-responsive-slab-text/

But I do not know how to set up custom blocks on the page. I must have the ability to store them so that I can easily switch between different types of blocks and with an API.

Screenshot desktop: https://www.screencast.com/t/utLK5hhuk
Screenshot mobile: https://www.screencast.com/t/0K8eFk6tecG7

  • This topic was modified 5 years by sirms.
  • This topic was modified 5 years by sirms.
Post count: 27744

Hello,

If I understood it correctly, you use that plugin and it works well on the desktop but it doesn’t work on the mobile theme, right?
Unfortunately, the only solution is to use the mobile page or mobile responsive version.

Thank you!

Post count: 45

Hi, no as you can see in the screenshot it works on mobile as well.

But I do not know how I can integrate this with defoult article boxes / or how to set up completely my own.

A better alternative is to use rem and em to make the text dynamic. I want the text to fill in the column (article box) – so that I do not have to change the text size of each article.

From developer:

However, I’m afraid, this is something you’ll have to check with your theme support, as the layout is using the Tag Div Composer there isn’t an easy way that could be recommended regarding this via CSS.

Using VW as stated by you in the following thread you have shared will only work if the parent HTML is relative to the size of the container which isn’t the case when I check:
https://stackoverflow.com/questions/16056591/font-scaling-based-on-width-of-container

What could be suggested would be to apply CSS based on standard screen size, but this won’t be perfect and the layout will change based length of the text added.

———–

Screenshot of how i want the articel text to be:
New Playlist(4)

  • This reply was modified 5 years by sirms.
Post count: 27744

Hello,

Unfortunately, this plugin and the way you want to integrate it with the theme can only be done with custom work.
What I can do about support is just send the path to the files, if you want you can find the files for flex block in this path wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes and the modules used in this path
wp-content/plugins/td-composer/legacy/Newspaper/includes/modules and for standard blocks in these paths wp-content/plugins/td-standard-pack/Newspaper/includes/modules -> wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes
The blocks in our theme have options that allow the font size as a general in the Theme Panel (standard pack) => https://www.screencast.com/t/eMWIOqeV3Xhor using tagDiv Composer for flex blocks. https://www.youtube.com/watch?v=jQvA64uTLkI

Thank you!

Post count: 45

i can send my massage, it says my ip i blocked. But when i sendt this it works.

  • This reply was modified 5 years by sirms.
Post count: 27744

Hello,

Unfortunately, I don’t really understand what problem you are facing and what error message you are receiving. Can you provide more information?

Thank you!

Post count: 45

Hi, where do i have my child theme?Dont see it in the downlaod folder

Post count: 45

is there a way to split the titles in two HTML elements for different font sizes?

Plan is to use vw.

Post count: 27744

Hello,

You can find the folder of the child theme in this path => Newspaper-tf\code\Newspaper-child also, this is a guide that can help you to create a child theme https://forum.tagdiv.com/the-child-theme-support-tutorial/
Unfortunately, you can’t split the titles.

Hope this helps you!

Thank you!

Post count: 45

I need to split the titles on the front page.

Is there a why doing this with custom job?

Post count: 45

I have problems with the nav header. The problem is the theme. I have done a conflict test.

Can you help me with this?

Screenshot: https://www.screencast.com/t/QJ5ZBxrHTqrQ

  • This reply was modified 5 years by sirms. Reason: Screenshot: https://www.screencast.com/t/QJ5ZBxrHTqrQ
Post count: 27744

Hello,

If you want you can contact our team our custom work team here: https://tagdiv.com/premium-customization-services/
Also, for the nav header please verify the console and see if you don’t have an admin-ajax error.

Thank you!

Post count: 45

I have no errors in the console

Regards
Ms

Post count: 27744

Hello,

Please provide the link to your website to inspect the problem.

Thank you!

Post count: 45

Hi, also need help to find the proper class to change the color on hover and focus on front page. I want to remove it for mobile only.

Website: dagensavis.no
you might be asked for user name and password:

<em>user: admin
Password: crust.fender.rimless</em>

Where can i find this in the code?
screenshot: https://www.screencast.com/t/PWufOQmaRjBz

  • This reply was modified 5 years by sirms. Reason: Where can i find this in the code?
Post count: 27744

Hello,

For the menu, seems you implement a custom code => https://www.screencast.com/t/RQhP1GoV, and is possible to interfere with our theme implementation if you want to have the design menu, you can use the element mobile menu => https://www.screencast.com/t/5uHLzBFw, and you can design it with some code CSS to open like now.
You can find the text in this path wp-content/plugins/td-composer/legacy/common/wp_booster/td_wp_booster_functions.php => https://i.imgur.com/e8dxMmz.png

Thank you!

Viewing 16 posts - 1 through 16 (of 16 total)
The forum ‘Newspaper’ is closed to new topics and replies.