Forum Replies Created
-
AuthorPosts
-
It’s okay… I found the code for this – so problem solved.
Kevin.Hi Mike,
Yes, that worked perfectly… thanks :)
I see you didn’t move the Grid upwards, but instead, removed the padding at the bottom of the section above to allow the Grid to be closer to the section above… very good.
Thanks again, much appreciated :)
Kevin.Sorry – meant to say its on the /welcome/ page and it is the grid lower down with the 4 columns…
Cheers.
Kevin.I have attached the detail for the site…
Kevin.Can I move the entire grid row upwards to reduce the negative white space for mobile devices?
If it was a section I could use the margins to change the top margin to a -80px, which would move it up as needed – but I don’t have this facility with the grid row.
Can you help?
Kevin.Hi Yigit,
Yes this is now working on the blog page masonry, with 3 columns.
However, I wanted it to work on the home page where i have the “latest news” with 4 columns – but I cannot seem to get this working?Sorry, I meant to say – it did work! However, is this the better option?
KI found this code:
// Excerpt length
function custom_excerpt(){
?>
<script>
// trim sentence by 22 words
function trimByWord(sentence,wordcount = 22) {
var result = sentence;
var resultArray = result.split(” “);
if(resultArray.length > wordcount){
resultArray = resultArray.slice(0, wordcount);
result = resultArray.join(” “) + “…”;
}
return result;
}
jQuery(window).load(function(){
jQuery(‘.post-entry’).each(function() {
jQuery(“.entry-content “).text(function(index, currentText) {return trimByWord(currentText);
});
jQuery(“.entry-title a”).text(function(index, currentText) {
return trimByWord(currentText,15); // trim title by 15 words
});
});
});
</script>
<?php
}
add_action(‘wp_head’, ‘custom_excerpt’);on this article:
https://kriesi.at/support/topic/excerpt-length-and-read-more-blog-post-display/
But did work – bit I was not sure if this was the best option?
Kevin.Hi Yigit
I already tried that code – in my main functions.php file – but it did not work?
Any other suggestions?
Kevin.Hi Ismael,
So I tried the code you sent and applied it to all cells with the relevant adjustments for the different padding and it worked a treat – and it held together with a couple of different screen sizes – so all good. Not a quick solution but it does work well :) :)
Thanks my friend :)
Kevin.Hi Ismael,
So logically, if we can set the padding per cell then why can’t we set the cell to align text in the middle? It is quite confusing – don’t you think?
Is it possible, even though you said it will break the table, to send me the code to test the align middle [as you mentioned at the start of this thread] to see if I can do a work around to get table cells to align in the middle to keep everything nicely balanced on the screen? I would like to try anyway :)
Cheers…
Kevin.Is it possible to set padding for each column separately and could I also set padding for individual cells as this could be a possible work-around – not perfect but more in line with the client expectations?
What do you think – could you supply the code and I can try this?
Kevin.Hi Ismael
Thanks for the update :)
Can you suggest an alternative layout that will work with the align middle – my client seems fixed on having the content middle aligned because it sits better on screen. Can you provide the code for me to try out anyway – I may be able to revise the layout if I need to.
Cheers.
Kevin.Hi Guys – I would really appreciate if someone could have a wee look at this ticket to see if there is a solution…
Cheers.
Kevin.Hu Guys
Any help on this would be great. :)
Kevin.Hi Victoria
The text was completely gone – disappeared – yet it was there because i could see the cursor for the text as i hovered over the area. However I went ahead and reinstalled the WordPress and the enfold theme and it is now working again – albeit there is a wee delay in the text loading up?
I thought it was because of plugins but after extensive testing – switching all off and activating one-at-a-time if found this made no difference. But each time I added code onto the Header file and/or Footer file – over in the cPanel FTP section on my server – the text would disappear again from the top section and leave the image remaining – it was there but not visible!.So what I did was to remove the enfold theme and then reinstalled the theme – then I turned off all the plugins and then, via WordPress – Appearance – Theme Editor – header.php and/or footer.php I added the code for GA and for the Live Chat etc and it did not remove the text from the top section – it stayed visible.
Very strange indeed – any thoughts?
Cheers…
Kevin.Hi Guys
Okay… I have finally solved the issue – however the text is now loading but it is doing so quite slowly – not sure why this is?
If anyone can shed some light on this I would genuinely appreciate your thoughts…
Cheers.
Kevin.June 16, 2020 at 10:44 am in reply to: how to change font colour on specific pages only in enfold #1222961Hi Nikko
I have left the original form in there on the left to compare the two. This site is a test site so don’t mind the recaptcha issue.
I am happy with the main fields being in white but is it possible to have the form title in white also? [ENQUIRY FORM :: COMMERCIAL]?
This would suffice for me…
BTW – I will be changing the form background colour to a purple to enable the white text to stand out.
Cheers.
Kevin.June 16, 2020 at 10:33 am in reply to: how to change font colour on specific pages only in enfold #1222957Hi Nikko
Thanks for your help – it worked in part only.
Here is the page I tested it on [below] and it does change the main fields but not ALL the text colour on the form – which I need to be in white.
Can you have another look and advise if ALL the font colour on the form can be changed to white?Cheers.
Kevin.June 5, 2020 at 7:56 pm in reply to: section height adjustment causing text block and content to disappear #1219915Hi Richard
Thanks – yes I am doing that at the moment and hopefully I can show what is happening. However – just a thought – if I clear out all the old code starting with the WordPress install and reinstall as much as I can – perhaps that will remove the code that is lying around and causing these issues?
Kevin.June 4, 2020 at 10:33 am in reply to: section height adjustment causing text block and content to disappear #1219326Hi Guys
I had to remove the update completely as it also knocked the burger menu off on the mobile devices – phone and iPad.
Is there a better method of doing a complete clean-out so that ALL old code is removed as I believe there is some code lying about that is corrupting the new install of the latest Enfold Theme.
Any thoughts.
Kevin.June 4, 2020 at 12:24 am in reply to: section height adjustment causing text block and content to disappear #1219264Hi Guys
Unfortunately I have to go back to the older theme as the problem is just too severe – every top section on every page has been affected and the text has disappeared. I cannot leave this for the client to see – so I have revered back to the old theme.
However, if anyone can provide any thoughts or solutions I will try them out – I will be back at my work desk in the morning at 9am GMT. I cna switch between themes ti test any solutions you can think of and to show you the problem when I switch pver to the new thewm – text will disappear from top of site!!
Hopefully someone can help.Kevin.
Hi Ismael
Is there any way you can explain this piece of code to me as I am not very good with the syntax:
What is this referring to: so16165211_mobile_home_redirect()
I understand that this code:
if ( is_front_page() ) {
$redirect = ‘/home-mobile’;
}
Checks if the page is the front page [home] then it redirects the user to the mobile version /home-mobile…
In this next statement:
switch ($post->ID) {
case 13:
$redirect = ‘/about-mobile’;
break;
What does case 13 refer to?
Is it the page ID?
If so – do I find the page ID’s and start from there?Thanks Nikko
That has worked perfectly… much appreciated – you and the team:)
KevinThanks Nikko
I tried that and it technically worked BUT it then added the circles to the section below on the tables – where there were NO circles previously – I have left this on for you to see…
Any ideas?
KevinHi Nikko
No – that did not work – it changed the size of the circle “.” but also changed the size of the text – which is what I do not want. I just want to make the actual circle part of the bullet “.” a different size and not affect the actual text itself – so just the “.” part only.Kevin.
Hi Rikard
I have changed it all back again to the standard circle/dot.
However – I still want to increase the size of the actual bullet itself and not the font. How can I do that?Cheers.
Kevin.I have changed the original bullets to squares just to see if it would look better but I cannot work out how to increase the size of the squares?
Kevin.Nice one Jordan… worked perfectly – much appreciated my friend :)
Kevin.March 7, 2020 at 9:58 pm in reply to: Setting different font sizes for MacBook Pro and iPad Pro #1191171Hi Guenni007
I think it is the “Super Cache” plugin – I turned it off and the changes are working – brilliant!!!!!
Thanks for your help – much appreciated. :)
Kevin. -
AuthorPosts