Jump to content
xcel7

PageLines category title h1

Recommended Posts

xcel7

Hello, I would like the category pages not to show the .current_posts_info saying "currently viewing category 'Catname'" but instead just to show the category name in an h1 style. Is it easy to do? (I'm not good at php!)

Share this post


Link to post
Share on other sites
greenfly

Hello xcel7 

 

Do you have a link to your site please? 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
Rob

Bonjour,

 

I don't see any category text on that site.  Did you already hide it with CSS?


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Rob

I found it!

 

You need to install PageLines Base Theme, but do not activate it yet. 

 

FTP then to wp-content/themes/pagelines/sections and download postsinfo (a folder). Download the entire folder.

 

Navigate then to wp-content/themes/pagelines-template-theme and upload the postsinfo folder to wp-content/themes/pagelines-template-theme/sections.

 

Once uploaded, open the folder in FTP, and edit the file section.php.

 

Edit this line to remove Currently viewing the category: 

printf( '%s <strong>"%s"</strong>', __( 'Currently viewing the category:', 'pagelines' ), single_cat_title( false, false ) );

Just make it:

printf( '%s <strong>"%s"</strong>', __( '', 'pagelines' ), single_cat_title( false, false ) );

I am not sure what will happen if you wrapped single_cat_title in <h1> tags, like so.

printf( '%s <strong>"%s"</strong>', __( '', 'pagelines' ), <h1>single_cat_title</h1>( false, false ) );

Save the file and upload.

 

Navigate to Dashboard > Appearance > Themes and activate Base Theme.

 

Let us know how it goes.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
xcel7

Thanks Rob,

Yes, it works, but:

• the commas are not removed

• what about my child theme "Mud" ?

Share this post


Link to post
Share on other sites
James B

Hi there,

 

You can edit the comma manually out of the code. If you're using a child theme then you'd upload the section into the sections folder so it overrides the main postsinfo section in the core and uses the new one setup in the mud theme.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
xcel7

Hi James,

Thanks a lot, it works very well! I had trouble fixing it but I finaly succeeded

Share this post


Link to post
Share on other sites
James B

Glad you got it working :-)


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • StuLeeUK
      By StuLeeUK+
      Good Afternoon,
      Could anyone help with a small issue I'm struggling with please? I've posted about this before but didn't actually get an answer that related to the matter to be able to fix it.
      Okay - I am working on this site: www.couriers.tv
      I have used 'Elements' at the top and 'Lander' further down - but unfortunately they both set the main text as 'H1' headings. I believe this is bad for search engines and I would like to adjust the Lander to be an 'H2' but I have no idea where to start?

      Any help would be very welcome, thanks.
    • JP
      By JP+
      Hello,
      We are working on a 2 languages site (https://liguecardioliga.be) with wpml, and lately the call of a category in the loops section (and all the sections requiring a category to select posts) doesn't work in the translated language. It worked well until recently so I wonder if it's because of a recent update (wordpress, wpml, pagelines, a plugin?). Anyone has the same problem? a solution?
      TIA
    • StuLeeUK
      By StuLeeUK+
      Good morning,
      I have set up my homepage using the Elements sections, a Masthead at the top and then a selection of Heroes lower down.
      I only just realised that the Heroes set a H1, as does the Masthead.
      Is there an easy way I can change the Heroes to an H2/H3 etc so as to improve the structure of my headers, whilst keeping the Masthead as H1?
      I really don't know much at all about CSS, which is why I use Pagelines because it's just so easy to create good looking pages without too much confusion.
       
      page for reference is https://www.avangocouriers.co.uk
      Thanks,
      Stu
    • Claudio
      By Claudio+
      I have a problem with the typography settings. I set the H1 class with "font-weight: 300;" (Very thin weight), and "font-size: 50px;" (To have considerable evidence of my problem). Unfortunately, as you can see on the screenshots, those setting don't have any incidence on the site, Infact in the home page editor there is a trial title called "Text test", bold, and 26 px approximatly sized.
      Why the typography settings are not transposed on the site? Where I wrong?


×