Andrew Leonard
Forum Replies Created
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Adding HTML to tablesIt is working!
I thought I would see the code in “TablePress” – that is what I did not understand – but it adds the code when you load the page(?) -I am not sure but it is working very well when I look at the pageSo thank you – I have enjoyed being your apprentice!
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Adding HTML to tablesI put the code into functions.php in my child theme and I left out a brace and I got an error message which I have now corrected so it is being “triggered” – but nothing is happening!
Have I misunderstood something?Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Adding HTML to tablesadd_filter( ‘tablepress_cell_content’, ‘Google_Wrap15’, 10, 4 );
function Google_Wrap15( $tablepress_cell_content, $table_id, $row_number, $column_number ) {
if ($table_id==15)
if ($column_number==2) {
$temp=$tablepress_cell_content;
$tablepress_cell_content = ““.$temp.”“;
}
return $tablepress_cell_content;
}
Is that it? – where do I put this code?
are all the variables $tablepress_cell_content, etc setup already?Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Adding HTML to tablesI am out of my depth here
I can program a bit in php and have created a function:
function Google_Wrap($tablepress_cell_content) {
$temp=$tablepress_cell_content;
$tablepress_cell_content = ““.$temp.”“;
return $tablepress_cell_content;
}
Now I am lost…
I would somehow have to execute this function on every cell in a specific row in a specific table…Fantastic!
once again thanks for the brilliant supportForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Responsive DesignOnce again, absolutely brilliant support
I love both your solutions
Thank youGood idea
I saved it as an excel file and that imported OK and kept the formatting
It loads reasonably fast – it has 960 rows
You can see it here:
https://www.andrew-leonard.co.uk/wordpress/ferns-2/growing/ferns-members-gardens/taxa-list/Forum: Plugins
In reply to: [Collapse-O-Matic] How do you center the "Title"This thread is resolved
Forum: Plugins
In reply to: [Collapse-O-Matic] How do you center the "Title"Thanks for your help
It got me thinking
You are right -I don’t need it in a table
I modified some CSS that someone at Collapse-o-matic gave me:
.gazette-expander2 .collapseomatic_content {
margin-top: 20px;
text-align:justify;
font-size: 14px;
}
.gazette-expander2 .collapseomatic {
margin-bottom: -30px;
text-align:center;
font-size: 14px;
font-weight: bold;
}
There is extra stuff in here that I seem to need for theme twenty fourteen but basically it centers the “title” and justifies the “content”
Thanks for your helpForum: Plugins
In reply to: [Collapse-O-Matic] How do you center the "Title"I should try to make this problem clearer
I want the title (the thing you click on to expand the text) to be centered but I want the text(the thing that gets expanded) to be justified
I cannot get this to work, either everything is centered or everything is justifiedForum: Plugins
In reply to: [Collapse-O-Matic] How do you center the "Title"Ugh!
I can see what my problem is:
my class of “simplej” does text justification which is what I want for the text to be expanded but I want the “title” to be centered.
Because I am doing this with a <td> I don’t know how to do this – does that make more sense?Forum: Plugins
In reply to: [Collapse-O-Matic] How do you center the "Title"This is the code I am using:
<td class=”simplej” colspan=”2″>[expand title=”ABSTRACT” trigclass=”noarrow” rel=”FGV19P1M1″ id=”FGV19P1M1″ startwrap=”” endwrap=”” tartag=”normal”]Two new endemic species of <i>Hypolepis</i> are described from the Mount Roraima region, in northern South America: <i>Hypolepis trinationalis</i> and <i>Hypolepis krameri</i>. Also, the list of species occurring in the three Guianas is updated, with a revised key.</td>[/expand]and you can see it working here:
https://www.andrew-leonard.co.uk/wordpress/publications/the-fern-gazette/the-fern-gazette-volume-19-part-1-2/When I say “Title” I am talking about the “[expand title =”ABSTRACT”…
I am not using h3 (as far as I know)I am sorry to say your solution does not work on my system
Forum: Themes and Templates
In reply to: Responsive design problemsHallo Andrew
Have you abandoned me?Forum: Themes and Templates
In reply to: Responsive design problemsscreen dump for Chrome
https://snag.gy/N0h8m.jpgForum: Themes and Templates
In reply to: Responsive design problemsHow very interesting
This is what it does for me
https://snag.gy/abgRd.jpg
I don’t know how to capture the whole thing like you did – I just did a screen dump
It does this in IE (11) and Firefox (29.01)Windows 7 professional
Chrome does actually handle it better but still not the same