mark l chaves
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: A simple HTML Table has a default style that cannot be changedHi @froughtz,
I inspected your source. I think your table was built using WP Table Builder.
E.g.
<tr class="wptb-row" style="background-color: rgb(255, 255, 255);"> <td class="wptb-cell" data-x-index="0" style="border-width: 1px; border-style: solid; border-color: rgb(224, 224, 224); width: 100px;"> ...Have you looked at their documentation to see how to style your rows?
Thanks!
- This reply was modified 6 years, 3 months ago by mark l chaves.
Forum: Themes and Templates
In reply to: [OceanWP] Pre-Purchase Question: Importing Demos (Elementor)Update
I set up a local dev instance of OceanWP. Just a heads-up for everyone, you definitely need Elementor if you want to import any free or paid demos.
The theme does a nice job of letting you know you what plugins are required/recommended.
I imported a demo without Elementor. The demo was imported successfully (good). But, there will be no styling (actually you just get the default browser styling). Which was expected.
Just sharing.
Thanks!
Forum: Themes and Templates
In reply to: [GeneratePress] Generatepress Mobile Menu DisappearForum: Themes and Templates
In reply to: [Astra] Home page header photo cuts off part of photoHi @rachellecdavis,
Welcome to the exciting world of responsive web design (rwd). There isn’t a one size fits all.
I explain this is more detail using what’s called art direction images.
Shout if you have any questions 😉
Forum: Fixing WordPress
In reply to: 15+ second website load timeHi @rodsn,
Please run a Google PageSpeed test on your site. You’re getting a 0 score for mobile and 12 for DT (out of 100).
https://developers.google.com/speed/pagespeed/insights/
Here are your top culprits.
Eliminate render-blocking resources
4.98 s
Enable text compression
2.28 s
Reduce server response times (TTFB)
2.12 s
Remove unused CSS
1.88 s
Serve images in next-gen formats
Warnings:
Unable to locate resource …10/UNO00597.jpg
Unable to locate resource …10/SINTRA-DE….jpg
Unable to locate resource …11/mulheres.jpg
…
Avoid enormous network payloads Total size was 27,797 KBMy Observations
Try get all your image sizes below 100 KB. Any image around 200 KB should be rare and if it’s the only image on the page.
Your total site size is almost 28 MB. Try to get your page closer 1 MB or smaller.
Good points from @phillcoxon. It looks like you are on Claranet. They look reputable. Just make sure you are not on a shared hosting plan.
Good luck!
Forum: Themes and Templates
In reply to: [Astra] Guide to CSS for free version?Here you go. Give these a whirl.
/* Remove white space between header and first post teaser. */ #primary { margin-top: 0 !important; /* Was 64px */ }I wouldn’t mess with the padding for the individual teasers using custom CSS. It would probably open up a can of worms if you do. Just make sure your CSS skills are up to the task if you do.
/* Make the sidebar content single spaced. */ #secondary { line-height: 1 !important; /* Was 2 */ }How to add CSS to WordPress.
Happy coding!
Hi @lemonathor,
A child theme as @carike mentions is highly recommended but not essential. Nor, is it the first place to start with respect to your questions.
>What if I want to change the font size, color, etc. of some text? How can I add an “span” and apply styles?
This depends on the theme and pagebuilder you are using. In general, you should be able to edit the HTML source. Read up on the tools you use to do this. Check out Kinsta’s article on how to edit HTML in Gutenberg.
>I know html, css and js but how am I supposed to use the “custom css” if I can’t add the class to my elements on the page
Again, many popular pagebuilders support editing HTML and adding class references to your page. Here’s a primer for adding custom CSS to WordPress.
JS is a different story. This can get complicated. You need to enqueue your scripts.
>How can I edit the code? If I open it with Elementor my page breaks. I mean only by opening it, I didn’t get the chance to change anything and it broke all the design.
You’ll need to ask the Elementor gurus. This forum doesn’t support commercial products.
>If I open the page with the included editor it doesn’t show the design (I mean not even close, is like everything is just dropped there), and the code is limited to like 10% of the page
This comes with the territory. This is a tough one to answer. There’s no silver bullet. Even when you edit raw HTML, CSS, and JavaScript what you see isn’t always what you get. Sorry that I can’t be more helpful here.
>I’m not complaining, I’m actually asking these questions, this is my first time with WordPress.
Forums are not the best place to learn WordPress IMHO. You should take a course. Forums are great to augment your learning. Always perform your due diligence with the answers you get here. This includes my answers 😉
Enjoy!
- This reply was modified 6 years, 3 months ago by mark l chaves.
Forum: Fixing WordPress
In reply to: Table text align in mobile phoneHi @rozard,
In general HTML tables are not responsive (i.e., they don’t play nice on small devices) As you can see.
Yes, there is a way to stack your columns on mobile. But, since you are using a table, it requires a bit of custom CSS.
For example, the code in this article actually works on your page. There are a couple of side-effects because you have extra whitespace in your columns and the stacking will be reversed (not RTL friendly).
https://css-tricks.com/responsive-data-tables/
I see that you are using a theme called Newspress Lite. Please refer to the theme’s documentation and support channels to see what your options are.
If it were me, I would create a parent div tag with two children div tags and then style them using flex and block with a media query.
See my example on CodePen.
Good luck!
Forum: Themes and Templates
In reply to: [Astra] Guide to CSS for free version?Hi @bygosh,
Do you have any example? I have not come across a CSS guide specific to a theme. It would be cool to see if any one has.
If you have a specific question about the spacing on your page, just shout.
Forum: Themes and Templates
In reply to: [Astra] Trying to center my post excerptI’d have to see the page. Can you share the link?
Hi @pheonis,
Looks like you figured this out?
If not, here’s the filter.
function mlc_remove_astra_post_read_more() { return __( '', 'astra' ); } add_filter( 'astra_post_read_more', 'mlc_remove_astra_post_read_more' );Based on this earlier post.
https://wordpress.org/support/topic/how-to-modify-the-read-more-text-on-the-front-page/
- This reply was modified 6 years, 3 months ago by mark l chaves. Reason: Grammar
Forum: Themes and Templates
In reply to: [Astra] Remove post titleHi @bufus,
Oh man, that’s sweet. I just starred and followed that Gist. Thanks for sharing that.
Enjoy!
Forum: Themes and Templates
In reply to: [Astra] Remove post titleHi @bufus,
You can use standard WordPress filters to remove the post title.
Try the code below. Either add this to your child theme’s functions.php or create a plugin for it.
/** * Filters for Titles * * Reference: * https://codex.wordpress.org/Plugin_API/Filter_Reference/the_title * * Menu code based on: * Fayaz https://wordpress.stackexchange.com/questions/309151/apply-the-title-filter-in-post-page-title-but-not-in-menu-title */ function mlc_remove_post_title( $title, $id = null ) { return ( get_post_type() == 'YOURFANCYPOSTTYPE' ) ? '' : $title; } add_filter( 'the_title', 'mlc_remove_post_title', 10, 2 ); function mlc_remove_title_filter_nav_menu( $nav_menu, $args ) { // we are working with menu, so remove the title filter remove_filter( 'the_title', 'mlc_remove_post_title', 10, 2 ); return $nav_menu; } // this filter fires just before the nav menu item creation process add_filter( 'pre_wp_nav_menu', 'mlc_remove_title_filter_nav_menu', 10, 2 ); function mlc_add_title_filter_non_menu( $items, $args ) { // we are done working with menu, so add the title filter back add_filter( 'the_title', 'mlc_remove_post_title', 10, 2 ); return $items; } // this filter fires after nav menu item creation is done add_filter( 'wp_nav_menu_items', 'mlc_add_title_filter_non_menu', 10, 2 );- This reply was modified 6 years, 3 months ago by mark l chaves. Reason: Replaced test post type with placeholder
Forum: Fixing WordPress
In reply to: Website Doesn’t Fit on MobileHi @themindfuledits,
Responsive Web Design
Your mobile version looks great to me. What you are seeing is pretty standard for modern responsive themes. This is how I design sites for my clients.
If you don’t like the mobile view, you can see about disabling the theme’s responsive option. Some themes have this setting built-in somewhere.
Repeating Hero Image
For your “doubled” hero image on the services page. I see a couple things wrong with the CSS.
1) This looks off. When I disable it, the image is positioned properly. I don’t this code is correct or even should be there.
background-position: 0px -179px;2) This CSS rule is missing. When I add this code to your CSS, the image doesn’t repeat and displays perfectly only once.
background-repeat: no-repeat;You’ll need to ask the Neve team why these two things are happening.
Please ask the Neve community forum https://wordpress.org/support/theme/neve/
Good luck!
- This reply was modified 6 years, 3 months ago by mark l chaves. Reason: Disabling responsive correction
- This reply was modified 6 years, 3 months ago by mark l chaves. Reason: typo