paulwpxp
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Theme: Twenty Sixteen] How to move header image upper?You’re welcome, glad it worked out!
Forum: Themes and Templates
In reply to: [Theme: Twenty Sixteen] How to move header image upper?Read thru and pick one of these Custom CSS plugins and install it.
https://wordpress.org/plugins/search.php?q=custom+cssthen use this code, change px number to your liking. The 0 value doesn’t need px unit, just so you know.
.site-header { padding-top: 0; padding-bottom: 50px; } .header-image { margin-top: 0; margin-bottom: 0; }Forum: Fixing WordPress
In reply to: Resize thumbnail/ featured image for specific custom post typeBy default, without users doing anything, WordPress has 4 image sizes; the full (original uploaded one), large, medium, and thumbnail.
The default size for thumbnail is 150×150 hard crop, for medium is 300×300 soft crop, for large is 1024×1024 soft crop.
Your wanted size is 300×170, this means you already have your featured image for your CPT without you doing extra work, in your template just call the image indicating the size value of medium, it’s soft crop so just upload the image with 300×170 (or any size based on its proportion), if you upload image with size other than this it will crop to 300px in width and leaves its height to auto based on its actual height.
Long story short, in your CPT template just call the image like this
the_post_thumbnail( 'medium' );https://developer.wordpress.org/reference/functions/the_post_thumbnail/#Examples
Forum: Themes and Templates
In reply to: [Agama] disable blog function at the siteInstall a Custom CSS plugin and use this code
.home .no-results { display: none; }The markup doesn’t look like something coming from the theme, I think it’s from Woocommerce or a special template built for it. So we need to go through each template, via cPanel’s file explorer, and look for this custom code then remove it.
Meanwhile we can use this, put in Custom CSS plugin, to display-none it.
.woocommerce-page #sidebar { display: none; }Forum: Themes and Templates
In reply to: [Pictorico] Change the featured image thumbnailFeatured image could be set for each post via post editing screen, look over to the right where it says “Features Image”.
If you don’t see this “Features Image” meta box, look at the top right corner and click screen option tap to pull down screen option where we can check/uncheck to control the display of the metabox.
Forum: Fixing WordPress
In reply to: Banner size & Colour of words over photosBy ‘depth’ do you mean its height? The width, height, and also the depth (layer order) as shown in the webpage are controlled by its actual dimension and the CSS code. Without inspecting the live site there is no way to know the real problem let alone fixing it.
For the icon problem, it seems like the site is using theme with the so called “page builder” plugin/functionality. If this is so, we should be able to fix that in the page editing screen by clicking on edit option of that section. Otherwise it needs to be fix via custom CSS code.
My suggestion is to get back to your web dev and ask him/her to make this adjustment for you. If you need help in this forum, post a new thread separate 1 question per thread, and also include link to live site.
Forum: Themes and Templates
In reply to: [Quest] Quest Child Footer returning to second lineThe problem is not in your child theme, it’s in main theme’s markup and CSS class. Take a look at the footer.php and notice these 2 divs.
https://themes.trac.wordpress.org/browser/quest/1.4.3/footer.php#L30
<div class="col-md-6 copyright-text"> </div> <div class="col-md-6 social-icon-container clearfix"> </div>So the reason long line of text in copyright section wraps into second line is because its containing div is only half the width, col-md-6. The other half is reserved for social icons.
We can extend the copyright text (and social icons section) all the way, you we can do this by using this code in our Child Theme stylesheet.
.col-md-6.copyright-text, .col-md-6.social-icon-container { float: none; width: 100%; }Forum: Themes and Templates
In reply to: [One-Blog] Changes to themeThis is a hotpink version of this theme (One-Blog ver 1.0.8), in case any one interested just copy and use in Custom CSS plugin, change color code to your liking.
/* * Custom CSS hotpink version of One-Blog theme version 1.0.8 * https://downloads.wordpress.org/theme/one-blog.1.0.8.zip * Use this code in Custom CSS plugin, or in Child Theme stylesheet. */ /***** Top bar *****/ .head-top { background: hotpink; } /***** Dropdown menu *****/ .head-nav ul li ul li a:hover { color: hotpink; } /***** Sidebar Title *****/ .widget_box:not(.footer_box) h3 { background: hotpink; } /***** Mobile menu *****/ .slicknav_btn, .slicknav_menu ul li a:hover a, .slicknav_menu ul li a:hover, .slicknav_menu ul li ul li a:hover, .slicknav_nav .slicknav_row:hover { background: hotpink; } /***** Read More button *****/ .post_content .blog_post_box .read-more { background: hotpink; border: 0; } /***** Slider control *****/ .home_slider .flex-direction-nav .flex-next, .home_slider .flex-direction-nav .flex-prev { opacity: 0.5; } .home_slider .slides li a:not(.home_slide_bg) { background: rgba(255, 105, 180, 0.5); } /***** Input border color *****/ input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="phone"], select { border-color: hotpink; } /***** Footer area *****/ footer#foot { background: hotpink; } .main-foot { border: 0; } .bottom-foot { background: #fff; } /***** Blog post archive left align text *****/ .post_content .blog_post_box { text-align: left; } .post_content .blog_post_box .blog_post_content { text-align: left; padding: 0; } /***** Text Color *****/ p { color: #777; } .post_content a { color: red; } /***** Next/Prev post button *****/ .post_nav { opacity: 0.5; } /***** Post Title in blog archive and single post page *****/ .post_content h3 a { color: hotpink; } .post_content h1 { color: hotpink; }Forum: Themes and Templates
In reply to: [One-Blog] Changes to themeWe need to put our Custom CSS in a plugin, so if not already had one yet go pick one you like and install it.
https://wordpress.org/plugins/search.php?q=custom+cssThis is the code to change top bar color
/***** Top bar *****/ .head-top { background: #ff0000; }and this is the code to left align text in blog post listing page
/***** Blog post archive left align text *****/ .post_content .blog_post_box { text-align: left; } .post_content .blog_post_box .blog_post_content { text-align: left; padding: 0; }Changing the color of top bar might require you to change text color (menu item) too, depending on your color we need to maintain readability so make sure we have good color contrast there.
Forum: Themes and Templates
In reply to: Navigation Drop DownThe menu item text is wrapped in
<span>tags, this is injected by a plugin called Menu Image, while the main theme has CSS to display none the span inside menu item, this is why the menu text doesn’t show.Since I see no sign of real use of Menu Image plugin, so just uninstall this plugin (also delete it) will solve the problem.
Forum: Fixing WordPress
In reply to: Lost my websiteLogin to the server via cPanel and upload the original file.
If you don’t know what cPanel is, contact your web hosting support, he/she might help you restore the file to its original copy.
Forum: Fixing WordPress
In reply to: Bullet points and indentation problemUse this code, it will affect only ul in post/page content and not the menu
section#main ul { margin-left: 20px; }Install a Custom CSS plugin and use that code in it, do not make direct change to theme stylesheet file.
Forum: Themes and Templates
In reply to: Changing font size of custom text after title.See if that plugin allow link attribute, if it does you should be ok, just add CSS to make this part smaller.
If the plugin doesn’t allow html link, use this function below (put it in functions.php).
/** * Add html content before post content */ function my_add_before_content($content) { if( is_single() && is_main_query() ) { $new_content = '<p class="mybeforecontent">This is to added before content</p>'; $content = $new_content . $content; } return $content; } add_filter('the_content', 'my_add_before_content');and in your Custom CSS use this code to make this part smaller
.mybeforecontent { font-size: 80%; }and maybe add some negative margin-top to move it up close to title.
One downside of adding this before content is the SEO, content appears first in the content is more important, you don’t want to have search engine index the site with affiliate disclosure, so I think it’s better to add this thing the last (after post).
To add the content after the post
just change this part
$content = $new_content . $content;to this
$content .= $new_content;Be aware that messing with functions.php can result in site crash when making mistake, so always have full site backup, and know how to recover the site via cPanel.
Forum: Themes and Templates
In reply to: [Pure & Simple] Transparent logo with Header Text overlayActually that whole thing, the text “Pure and Simple” and the “&” behind it, they are graphic in 1 image.
This is that image source used in the demo site
http://demo.styledthemes.com/demos/puresimple-free/wp-content/uploads/sites/4/2014/10/logo1.png