axbx
Forum Replies Created
-
Ouf !! good luck !
Have a good day
oh I’m really sorry! This code worked well for my problem, it was written to me by an administrator of the French WordPress forum.
Did you find a solution ? Maybe you can find help on this forum in French, with a new topic ?
https://wpfr.net/support/sujet/probleme-affichage-vignettes-si-mot-de-passe/#post-2452656
Sorry, sorry, sorry.
Best regards
Hi !
In your content.php you have probably :
<?php $thumbTrnail_url = ( has_post_thumbnail() && ! post_password_required() ) ? get_the_post_thumbnail_url( $post->ID, 'post-thumb' ) : ''; $style_attr = $thumbnail_url ? ' style="background-image: url( ' . $thumbnail_url . ' );"' : ''; ?> <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>" <?php post_class( 'post' ); ?><?php echo $style_attr; ?>>Try to replace it by :
<?php $thumbnail_url = ( has_post_thumbnail() ) ? get_the_post_thumbnail_url( $post->ID, 'post-thumb' ) : ''; $style_attr = $thumbnail_url ? ' style="background-image: url( ' . $thumbnail_url . ' );"' : ''; ?> <script> $=jQuery; $('.post.post-password-required').removeClass('post-password-required').addClass ('has-post-thumbnail')</script>Regards.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] problem scroll on tabletHi !
I just added
.tablepress{
overflow-x: scroll;
}
and it works vwell !Sorry for this message, and thank you if you read it !
RegardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] button onclick=”increment”Hi,
it’s better ! but cells with a long text are text-align left, not center. So I add a little padding-left and it looks perfect.I thank you very much !
Have a good day,
best regardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] button onclick=”increment”Hi,
thanks for your answer
https://saucegrimich.bouchure.com/crevettes-au-gingembre/(And, test my buttoms + and -, you see they modify the “crevettes cuites” quantity.
🙂 🙂 with your advises !)
RegardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] button onclick=”increment”oh !! I see that you can see my problem !
in the frist case, the 3 words are each center in the lign.
And I’d like them to be align left, and all the group in the center of cell.
Very very difficult to communicate when screen doesn’t respect tabulations 🙂
RegardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] button onclick=”increment”Hi,
Me again, sorry !I can’t solve my problem :
In my table I must have all the text-align: center.
But, in a row, it’s look like that :
tomates
fraiches ou 1
boite
I try to have : (center horizontal in the cell)
tomates
fraiches ou 1
boiteI tried text-align: left; padding-left:auto;padding-right:auto; doesn’t work in my table class
I tried in the cell <div class=”truc”>tomates etc</div> with .truc {text-align: left} , while tableclass table is with {text-align:center}, expecting it will center the div. But doesn’t work
I tried many else, and never work !
Would you have an idea ?
Thanks a lot !
Best regardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] button onclick=”increment”Ah super !
It’ just I wanted to do ! Sorry, I read many supports but I did’nt find that.
Thanks a lot, really !
Have a nice we
Best regardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] button onclick=”increment”Hi,
I have 2 types of tables in my site, on type is “A”, the other is “B”.
All the “A” tables have the same css properties.
All the “B” have others css properties but all are the same.I know that I can change a table-Id. So I can decide that all my “A” tables have odd-Id, and all the “B” have even-id.
Is it possible to have something like that :
.tablepress.odd-id td {
color etc}
and .tablepress.even-id td {
background etc}Or do I have to enter .tablepress-id-3 {}, and.tablepress-id-4 {}..and tablepress-id-52 :), so one .tablepress-id for each table ?
Many thanks.
RegardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] button onclick=”increment”ok, I understand.
I think it’s good 🙂 🙂
I was afraid of JavaScript code, because, I’m not expert !, but it works ! I’m lucky, my formulas are very simple.Thanks a lot for your help.
Best regardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] button onclick=”increment”Hi,
doesn’t work ! always “!error! A1 does not contain a number or expression”. So I’ll wait the next update.:)
However, I thank you for your answers (I just made a donate).But I wonder : each Cell has a Name, which is well recognize in formulas calcul.
Using a “document.getElementByName().innerText = data” would avoid writting an id inside the cell, and would avoid text in it.
No ?I tried many things for a name like (cell A1) or cell {A1}, but nothing matches :).
Best regardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] button onclick=”increment”Hi,
In cell A1 content is <div id=”pers”/>8
and, if, in A2, I enter =STXT(A1;17;2), it’s genial because A2 content is 8 and I can use it in calcul formulas.But, it seems STXT function is not supported by Tablepress.
Do you know, please, if an extension exists witch does it ?
Premium TablePresse doest it ?As you can see, I work hard to keep tablePress -:) -:)
Best regardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] button onclick=”increment”Wa ! it works !!
So, I’ll persist and try to integer this id”data-value” in calculs formulas, to go on my project, because TablePress is a good plugin and I can’t leave it easy !
Many many thanks !
Best regardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] button onclick=”increment”Hi,
I dare contact you again :
this following code seems good because it works very well in .html.
But if I paste it in a cell of my TablePress, it doens’t work. Would you know why ?
(We see the number 5, the 3 buttons +, raz, -, we can click on their but nothing else happens.)Many thanks,
Regards<div id=”data-value”>5</div>
<button onclick=”increment()”>+</button>
<button onclick=”reset()”>raz</button>
<button onclick=”decrement()”>-</button>
<script>var data=5;
function increment() {
data = data + 1;
document.getElementById(“data-value”).innerText = data;
}function decrement() {
data = data – 1;
document.getElementById(“data-value”).innerText = data;
}function reset() {
data = 5;
document.getElementById(“data-value”).innerText = data;
}
</script>`