I'm trying to delete the excerpt that appear on resume list in wp job manager. See the screenshot to understand better. Anyone knows how can I do that?
You should be able to remove excerpts when you edit your page template file and remove the_excerpt(); function from it (be sure to move template to child theme first).
Or simpler method would be using CSS. Just write into your theme's custom CSS:
yourExcerptSelector{
display: none;
}
(CSS will hide it but will not remove it)
Related
I have description in all the categories page in my wordpress blog. I want to disable the listing of posts in the category page. I tried using css,
.inside-article{
display:none;
}
But this hides content inside all pages and posts.
I want only the post listing to be gone in category, and not even in tags.
When you don't want content in a page at all, hiding it via CSS is not the desired solution. Instead, this content should be removed "for real" directly from the applicable template file.
Here's a description of WordPress' template hierarchy: https://developer.wordpress.org/themes/basics/template-hierarchy/. Most probably you should edit the category.php file. If it does not exist, you can create one by cloning the archive.php file, which should be there in most cases.
Ok, I figured this out in css., Although I would suggest the answer by Zoli, that content should be removed for real.
This is the code I tried in CSS
.category .inside-article { display:none; }
1) I'm trying to remove the breacrumb from page-title div using php instead of display:none but i can't manage to found the good hook, i check in many different php files etc but anyway i'm not good enough in PHP. I'm like zero.
2) I also want to display the breadcrumb into the footer. I manage to found a way to add it into the footer already using simply
add_action( 'flatsome_footer', 'flatsome_breadcrumb', 10 );
But i did not found the hook to put it into their "footer-1" that is a child div of the footer block. This flatsome_footer is the parent div and it will make me add more css for it.
Here is the documentation of the flatsome theme (Actions & Filters), it may can help (i try many different as i say & open php files but cant manage to remove it by remove_action maybe i have to add filters idk... i'm just bad.
https://docs.uxthemes.com/article/385-hooks#flatsome_footer
All i know is that their page title block is using (shop-page-title category-page-title page-title) css class.
Thank you very much for helping.
If you want remove breadcrumb from shop or product page, you should findout hook from below files and comment that code.
Category Page File: yourthemepath/woocommerce/layouts/headers/category-title.php
Please check https://docs.uxthemes.com/article/385-hooks#flatsome_category_title
Product Page: https://docs.uxthemes.com/article/385-hooks#flatsome_product_title
I'm making a custom dashboard for WC and need to add content just between the nav and ul elements in WooCommerce's menu in dashboard in the easiest way.
I've seen there's a hook called woocommerce_before_account_navigation and woocommerce_after_account_navigation but those hooks add content after or before the entire nav element.
Here is a picture of what I'm trying to do.
Someone got a solution?
Since WooCommerce doesn't provide hooks to inject code exactly where you need it:
#1 Customize the navigation section from your theme
Since WooCommerce allows you to override most of its template files, you could:
Copy the navigation.php file located at /wp-content/plugins/woocommerce/templates/myaccount/.
Paste this file into /wp-content/themes/your-theme/woocommerce/myaccount/.
Make your desired changes.
Profit!
Keep in mind that you'll want to keep an eye on WC's updates from time to time because there might be changes in the files you're overriding that you might want/need to port over.
Or...
#2 Inject your custom code right where you want it using AJAX & JS
Use WordPress' AJAX API to generate the HTML output you need and inject it right between the nav and the ul tags using jQuery/vanilla JavaScript.
This way you avoid having to override WC's templates. Keep in mind though that if you do this while using a caching plugin on your site you'll need to configure it so it rebuilds its cache every ~24 hours or less or else things might break for some users (example).
Well....the easiest but not the best way is to:
Manually put a an empty div tag so that your code becomes something like:
<nav class= 'woocommerce-MyAccount-navigation'>
<div style ='blah-blah'>//that div after the nav bar ;TLDR
<div id='newDiv></div>
<ul>//etc
Wrap up the code to display user infos, avatar and name in a php function (I named mine
getUsernameAndStuff()) letting id be the id of the user.
Like :
<?php
function getUsernameAndStuff(id){
//put the code here..
}
?>
Then using js:
<script>document.getElementById().innerHTML=<?php getUsernameAndStuff(id)?></script>
I need to remove vertical scrollbars from a specific webpage only in my site
http://historyofliverpool.com/test-2/
The page is made up from many php and css files, to I do not know where to begin editing, and do not want to alter the rest of the site.
Would a custom field on this page only solve my problem?
Any help much appreciated.
I can't find any overflow: hidden in your stylesheet.
Please try this:
.fullscreen {
overflow: hidden;
}
Removing the scroll bar is easy; you would simply need to apply overflow:hidden to the body selector.
The real challenge is removing the scroll bar on the correct page. There are quick and dirty ways of doing this, but lets take our time and look at this sensibly:
Child Themes
It looks like you're using the Anglepane theme. As this is a commercial theme I'd recommend you first create a child theme before making any changes. This way when the Anglepane theme is updated it doesn't remove your edits.
Identifying the page - body_class()
The next step is identifying and selecting the page you want your changes to apply to. WordPress has the convenient body_class() function that adds CSS classes to the body element, allowing you to easily add styles on a page by page basis. Now it looks like your theme isn't using this function; so you should add this function by:
Copy the header.php file from the parent theme folder to your child theme folder so you can edit it
Find the body tag and alter it like so:
<body <?php body_class( $class ); ?>>
Identifying the page - ID vs template
Once you've added the body_class() function you should find that your body element will have a bunch of classes that you can use; one of these will be the page ID, prefixed with .page-id-. You can now use that class name for your CSS. For example, if your target page had an ID of 3 you could use:
.page-id-3 {
overflow:hidden;
}
While this works, I personally like to use page templates instead for targeting page-specific styles. One of the benefits to this is that it avoids mismatched page IDs between different environments. For example, I might want to change the background colour of my about page, which has an id of 4:
.page-id-4 {
background:red; // Works as long as the page ID is definitely 4
}
That works great on my local copy of the site, but on the live site my about page has an id of 24. I avoid this by creating a page template specifically for my about page. This way I can use the page-template selector instead, which is consistent across both environments:
.page-template-about {
background:red; // Now I work everywhere
}
Hopefully that convers everything in sufficiently detail for you.
I'm customizing the Wordpress Admin site to suite my needs and there are several things I want to remove and customize (menus, etc...).
I noticed on the DashBoard section called 'Right Now' there are several things I don't need there. For instance the CHANGE THEME button and the wordpress version and theme. I found in the source dashboard.php where these are rendered, but rather than edit the source, can I just make a function that intercepts and changes this so it doesn't render them?
I also want to remove the DISCUSSION section and some of the counts for CATEGORIES, TAGS, and PAGES.
Is there a way to go about this? Thank you!
Hmm I think I solved this myself, although I'm not sure correctly. Using firebug I was able to find the class names and element ID's of the version and CHANGE THEME button and the version and theme
I added this code in my functions.php:
function wpc_remove_admin_elements() {
echo '<style type="text/css">
.versions p {display:none !important;}
.versions #wp-version-message {display:none !important;}
</style>';
}
add_action('admin_head', 'wpc_remove_admin_elements');
This added some styling in my header to hide these elements.
Is there a more efficient way to do this or am I going to be ok? I still don't know how to hide some of the Content and Discussion counts in the RightNow dash.