TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

November 06, 2024, 05:48:56 AM

Login with username, password and session length
Members
  • Total Members: 3,923
  • Latest: Nobohdy
Stats
  • Total Posts: 195,411
  • Total Topics: 21,249
  • Online today: 98
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 19
  • Total: 19

How do you target specific blocks with CSS?

Started by [chrisB], February 04, 2023, 01:02:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[chrisB]

I'm not, it just gets added. If I remove it, it comes back. If I save and ignore it - it duplicates.

Can third-party blocks be added to the 'Choose type of block'?

@rjen

Quote from: [chrisB] on February 04, 2023, 06:47:43 PM
Can third-party blocks be added to the 'Choose type of block'?

No, that is not possible.

Perhaps if you explain what you are trying to accomplish we can help you.
With html blocks and php blocks there is really no limit to what you can do...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

Quote from: [chrisB] on February 04, 2023, 06:47:43 PM
I'm not, it just gets added. If I remove it, it comes back. If I save and ignore it - it duplicates.

cannot reproduce that: I copied your code, put it in a html block and it works...

by the way, you should not declare header and body sections in a block: those already exist on the page. This block works fine for me...


<script src="https://poetryartonline.com/files/jquery.min.js"></script>
<script src="https://poetryartonline.com/files/jquery.bxslider.js"></script>
<link rel="stylesheet" href="https://poetryartonline.com/files/artslider.css">

<script>
    $(document).ready(function(){
      $('.slider').bxSlider();
    });
</script>

<div class="slider">
<div><li><img src="https://poetryartonline.com/files/art/slider1-min.jpg" alt=""></li></div>
<div><li><img src="https://poetryartonline.com/files/art/slider2-min.jpg" alt=""></li></div>
<div><li><img src="https://poetryartonline.com/files/art/slider3-min.jpg" alt=""></li></div>
<div><li><img src="https://poetryartonline.com/files/art/slider4-min.jpg" alt=""></li></div>
<div><li><img src="https://poetryartonline.com/files/art/slider5-min.jpg" alt=""></li></div>
</div>
Running Latest TP on SMF2.1 at: www.fjr-club.nl

tino

Quote from: [chrisB] on February 04, 2023, 06:47:43 PM
I'm not, it just gets added. If I remove it, it comes back. If I save and ignore it - it duplicates.

Can third-party blocks be added to the 'Choose type of block'?

Do you have any other mods installed? That doesn't sound like a TinyPortal issue. As in I didn't realise we even added meta tags.

[chrisB]

I've managed with one part, I can't figure out how to remove the useless scroll bar.


https://poetryartonline.com/

QuoteDo you have any other mods installed? That doesn't sound like a TinyPortal issue. As in I didn't realise we even added meta tags.

Could it be caused the Pretty URLs Pro mod? Thinking about it, links sometimes add the pretty URL on top of the code which forms the links which means they break.

@rjen

With pretty URLs anything is possible I guess... I really do not like that mod
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

Quote from: @rjen on February 04, 2023, 07:52:38 PM
With pretty URLs anything is possible I guess... I really do not like that mod

Ditto.  ;)  I don't use it either for same reasons.