paulwpxp
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twenty] Change the width of a “normal” blockThe idea has been discussed but not much going on yet, the point is they want this theme to calculate color contrast to pass the accessibility standard
you can see detail here
https://core.trac.wordpress.org/ticket/48679On a sidenote:
The color picker thing in admin is great for end users to try thing out, but maybe it’s just my feeling that the UX is not very smooth. Chrome’s web dev tool has this color picker live preview that’s easier to work with. When I build website for my client, I would set whatever color just to trigger theme’s auto generated CSS, then view source on the front end to get that set of CSS selectors, then use that to assign color I want in Custom CSS or child theme’s CSS.
Forum: Themes and Templates
In reply to: [Twenty Twenty] Change the width of a “normal” blockYes, it’s the same code but replace
pwith*(asterisk symbol)or just copy this to use instead of that code
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) { max-width: 960px; }Forum: Themes and Templates
In reply to: [Twenty Seventeen] Remove lines before and after contentI don’t see the lines there before and after content, did you get this fixed?
Twenty Seventeen doesn’t have lines before and after content, but it does have big spaces between elements though.
Upon quick inspection, I suppose the line before content you referred to could be the space left over header area that’s been modified to adjust header (logo) image. If this is the line you mentioned, to fix this is to use other method for header image adjustment. The way it is now has flaw too, the logo gets cut off on left and right in small screen device. I remember there are quite a lot of this support questions/answers at the time this theme released, so you can try searching for it.
For the line after content, if you mean after footer, it’s just body background color this part will show when the page has not enough content to fill the screen viewport vertically. To fix this just assign the same green color as footer to
<html>element.My personal view, as a sidenote here, this theme is getting old and we should use the newest theme possible to start a new project, this is to ensure compatibility and longevity of the project. The Twenty Nineteen or Twenty Twenty theme is great, of course there might be some parts need to be adjusted for the project but it’s true to almost any theme we choose.
Forum: Themes and Templates
In reply to: [Twenty Twenty] Change the width of a “normal” blockThis will widen normal text block (in
<p>tag) from theme’s default 580px to the max width of 960px, change this number to your liking (for example if 960px is too wide, just use 900px or 840px or 720px)..entry-content > p:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) { max-width: 960px; }Just copy and paste the code in Appearance > Customize > Additional CSS.
Forum: Themes and Templates
In reply to: [Kale] Home Page recent postsThis plugin should take care of that
It’s usually under WP dashboard admin > Appearance > Customize > Additional CSS
It’s a standard WordPress feature since 4.7
https://codex.wordpress.org/CSS#Custom_CSS_in_WordPressSometimes web developer would hide this Additional CSS section (via role and capabilities settings) so that client won’t be able to customize (ruin) the site. So if you really don’t see this section in your WordPress install, consult your web dev.
Some people prefer to use plugin for this (search for “custom css” in plugin repo) which offers some extra options but it does the same thing, there is no need for this kind of plugin if we only use few lines of CSS code to customize the site here and there.
If the site use a child theme, all the additional CSS should go to child theme’s stylesheet, no need to put the CSS code anywhere else.
Forum: Themes and Templates
In reply to: [Blog Expert] Hide Tags from postsThis should it, use via Additional/Custom CSS
body:not(.single) .post-tags { display: none; }Forum: Themes and Templates
In reply to: [Twenty Twenty] Full screen width usage on twenty twenty?Forum: Themes and Templates
In reply to: [Twenty Seventeen] Remove page number, pagination.Yes, go ahead and remove that function, but do it only if you’ve done this before (editing php file on a live site) and understand what could happen and know exactly how to revert the change (meaning you have theme files backup available and ready to revert the changes via FTP or hosting’s file manager).
Just so you know there is an alternative to editing php file, just add this to Additional/Custom CSS section.
p.post-nav-links { display: none; }Also keep in mind since you have quite a lot of CSS code in Additional/Custom CSS, make sure you keep a copy of it for backup. Actually all of this additional CSS code should be in your child theme stylesheet, also the modified php file too should be in child theme folder, that’s the purpose of having a child theme.
On a sidenote here, 2017 theme is getting old, maybe it’s time to consider changing to a newer theme? It’s not that complicated, just setup a staging site (probably in sub domain or do it in local machine), import content from the live site into it and play around with new theme until you get the design you want, then upload the theme to the live site.
Forum: Themes and Templates
In reply to: [Twenty Seventeen] Remove page number, pagination.I do not know where the code for the paginations are placed. I understand it may have something to do with wp_link_pages which I found in Twenty Seventeen’s Single Page (page.php)
The
page.phpof 2017 theme doesn’t have a call towp_link_pages()presented in the file itself (it gets called bytemplate-parts/page/content-page.php), so please check if you really have 2017 theme in its original form, not an edited one.Precaution, before doing any changes to theme files, it’s good practice to always have full site backup. Just in case something goes wrong we can get the site back up in its previous condition.
Another thing is the site’s parent theme (twenty seventeen) style.css says it is version 2.0 (11 months ago, long before WP5.3), the latest is 2.2, so it’s possible that if you update the theme to the latest version the problem might get resolved.
If after taking care of the parent theme and problem persists, try disabling all plugins, this will rule out that the problem is from theme files or plugin(s). If with all plugins disabled the problem still there, theme (parent and/or child) is the culprit. If all plugins disabled and the problem is gone, try re-enabling them one by one to rule out the one that causes it.
Since your child theme doesn’t have anything in stylesheet (other than the header info indicating the parent theme). Try looking in your child theme
functions.phpfile, there could be a function that injects additional nav links. If your child theme haspage.phplook into it see if there is a call towp_link_pages(), as mentioned earlier there must not be a call to this presented inpage.phpotherwise it gets double display.Avoid editing theme files directly otherwise the changes could get lost when theme updates.
For changes in CSS, we just add code to override theme’s style by putting our code in Additional/Custom CSS section.
This code will make the header/logo image full width.
#site-header img { width: 100%; }Forum: Fixing WordPress
In reply to: What is the purpose of the Meta sectionRE: Do you mean keeping the links in “categories” instead of pages or something?
No, I didn’t mean category in the sense of post or page taxonomy as in standard WordPress category/tag. I mean we mentally categorize all the links we have into groups based on its context or relevance.
Suppose our website will have total of 30 links to other websites related to cats, dogs, family and friends. Instead of having 30 links in sidebar (or footbar for modern one column design), we put in only 3 links there.
For this example, in our sidebar (or footbar) we have 3 links each of which is a url to normal WordPress page that we created and named it properly.
- “For cat lovers”
http://example.com/my-cats-page - “For dog lovers”
http://example.com/my-dogs-page - “Hello my friends”
http://example.com/my-people-page
On each page (normal WordPress page) write up an introductory paragraph followed by list of links to websites related to the subject of that page. Or we can do it better by writing up introductory paragraph for each link. And now that WP 5.3 has this new Group Block, we can fancy up the design on this page easily.
The reason to have introductory paragraph for each link (or one main paragraph for list of links) is to avoid our website being recognized by search engine as “Link Farm” which can hurt the SEO. And also it gives the context to site visitors, for people to understand why these links are there.
Forum: Themes and Templates
In reply to: [Allegiant] Center image captionsIt could be that theme hasn’t updated to reflect new image/gallery markup in WordPress 5.3
Meanwhile use this in Custom CSS section
.wp-block-image .aligncenter figcaption { text-align: center; }Forum: Fixing WordPress
In reply to: WordPress site has issuesHi Steve, you can always contact your hosting provider and ask them to help restore the site to its previous stage. All (or most) hosting providers keep backup available for this kind of situation.
Forum: Fixing WordPress
In reply to: What is the purpose of the Meta sectionThanks Otto for clearing that up, I forgot the “Meta Widget”.
RE: list of links in page or in sidebar
My take on this is to do what makes sense. Links in sidebar is site-wide, so it should be something important to the site, while links in a page are specific to the content in that particular page. What to avoid is having way too many links in one place
If I were to have a while lot of links to display on a website, I would categorize them in group and create a page for each group. On the page, I would make sure to include introductory text for each link or for the whole group. So links on the sidebar will lead to each page containing links.
- “For cat lovers”