paulwpxp
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Changing font size of custom text after title.The code posted above is not responsible for the custom text after title unless you filter this function.
Anyway, there is a plugin for this kind of stuff, this one is for example
https://wordpress.org/plugins/secondary-title/I would avoid doing that for all posts, why? because it doesn’t seem vialble in the long run, I’d rather just go with 1 post title as normal.
Also it depends on the purpose of doing it, if you only want some custom text appears under some specific post titles, or same custom text under some posts, we can do that with CSS only (add the text via CSS content using ::after).
Forum: Fixing WordPress
In reply to: Linking to site expands longer than image itself.Use this code in Custom CSS will fix it.
a[href="https://www.linkedin.com/in/echo-penrose-2a342925"] img { display: inline; } a[href="https://www.linkedin.com/in/echo-penrose-2a342925"] { box-shadow: none; }You already have Jetpack installed, so just go enable the Custom CSS module and use the code above.
Forum: Themes and Templates
In reply to: Custome Page Template Ignoring CSSThere is nothing in the
<head>, this indicates thatwp_head()function was removed, probably the whole header.php was removed.Follow the instruction on how to create a custom page template
https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/You can remove elements show in header, footer via CSS targeting using body class (WP will output the class for custom page template automatically).
In short, always include
header.phpandfooter.php, these 2 files has important WP function that theme uses to hook in stylesheet and JS.Forum: Themes and Templates
In reply to: Custom theme is replaced by a repo theme with the same name.One thing you can try is to change the folder(directory) name of your theme.
Suppose your theme’s folder name is
twenty-twelve,
then rename it tomy-twenty-twelve.I think the theme name as stated in stylesheet doesn’t matter, it’s the directory name.
Forum: Themes and Templates
In reply to: [trance] Header ImageView source on your web page and get to the CSS background property of
<div id="header-image">See if that img url referenced in background image is a crop version or full version. If it’s a crop version, make sure you don’t accidentally crop image when uploaded to WP. If it’s a full original version, then the problem might be that your screen width is wider than 1920px. This part of the theme is using background image size property set to “cover”, so it always stretches.
Forum: Themes and Templates
In reply to: [trance] Header ImageUse an image with 1920px in width and 400px in height, or use smaller image with same proportion of width and height.
https://themes.trac.wordpress.org/browser/trance/1.7/inc/custom-header.php#L29Forum: Themes and Templates
In reply to: [Olsen Light] Removing Featured Photos From PostsWe can install one of these Custom CSS plugin
https://wordpress.org/plugins/search.php?q=custom+cssand use this code to display none, and be done with it
.home .entry-featured .blog .entry-featured .search .entry-featured .archive .entry-featured .single-post .entry-featured { display: none; }but the downside is that the page might still the images in the source code wasting bandwidth, so the right way is to prevent the output in the source. We can do this by using a Child Theme and override the template.
For example this line #L29 to #25 in single.php is responsible for it
https://themes.trac.wordpress.org/browser/olsen-light/1.0.1/single.php#L29So remove that part in our version of single.php of our Child Theme.
Forum: Fixing WordPress
In reply to: redirect urlIs it in the menu? If so you can put arbitrary link in the menu item, this is WP standard option when managing the menu.
If you really want actual WP page to link to other site, you can also use this plugin.
https://wordpress.org/plugins/page-links-to/change rollover color on awesome font in social icons (footer)
See this line #L1688
https://themes.trac.wordpress.org/browser/legal/1.0.4/style.css#L1688.social-widget ul li .twitter-icon:hover, .social-widget ul li .twitter-icon:focus { background-color: #179ca4 !important; }So use that same exact code in your child theme, or Custom CSS plugin, and change the color code to your own.
Forum: Themes and Templates
In reply to: [Optimizer] Controlling facebook imagesWe need to use og (open graph) meta in the head.
Try this plugin
https://wordpress.org/plugins/facebook-thumb-fixer/This will make the drop down left align to its parent.
.main-navigation li ul { left: 0; }The first issue (border) won’t happen if we use direct child selector. For example this will change background of the top level menu only.
.nav-menu > li { background-color: red; }Anyway I see that the site is brand new? Maybe it’s already too late but for longevity of the project it’s better to build new project using the latest theme. TwentySixteen theme is a good one.
On that google pagespeed test on TwentyTwelve, for Size tap targets appropriately click on show details reveals the fix suggested.
There are 2 problems.
The First one is the space around skip to content link which we have nothing to worry about because it’s absolute positioned at top right, google thinks it’s too close to site title that’s all, if you want to fix this increase top margin which is the white space above the site title.
The second problem is the space between each menu item which is too close and not easy to tap, if you want to fix this just increase the padding on each menu item link.
Forum: Fixing WordPress
In reply to: Increase padding % on blog postsHi Laura
First please take this out (delete it from your custom css)
#content .single-article article { padding-left: 19%; padding-right: 19%; }then use this code instead, it does everything you asked for above.
.single-post .entry-content, { max-width: 700px; margin-left: auto; margin-right: auto; } .single-post #comments, .single-post #respond { max-width: 750px; margin-left: auto; margin-right: auto; }Right now I couldn’t see any extra CSS in the source. Whatever Custom CSS plugin you use, make sure to click save and reload the page (hit Ctrl+F5)a couple times to clear browser cache so we can see the change.
Forum: Fixing WordPress
In reply to: Increase padding % on blog postsCould you please be a bit more specific?
Do you mean the side paddings of content area when viewed in small screen device?
Theme is one column with no border line on both sides so the side padding on content area doesn’t mean a thing unless what you want here is to reduce the width of the content area, but it seems already optimized for text reading.