Jump to content

Archived

This topic is now archived and is closed to further replies.

vladimirtrajkovic

Adding single category title on PageTitle

Recommended Posts

vladimirtrajkovic    1
vladimirtrajkovic

Hi there,

 

My website consist of one front page and all the rest pages are category pages. I wand to add tite on each page. So when I add PageTitle it shows Title: "Blogs" and Subtitle: "82 posts" on the front page, and than on each category page I have Title: "Category Archive" and Subtitle something like: 22 post in category "Smartphones" when I click on Smartphones page, or 35 posts in category "Software" etc.

 

What I have learn is how to change the Title" Blog", and I change it and add the title of my website. However I don't know how to change Title "Category archive" in the "Smartphones" when a user click on a Smartphones menu, or in the "Software" when the user click on Software menu.

 

Basically, what I want to achieve is to make PageTitle automatically extract Category Archive name as a title.

 

Please bear in mind that I am not familiar with coding, so it will help if there is some workaround solution. My website, in case you needit, is htechnews.com

 

Thanks in advance,

Vladimir

Share this post


Link to post
Share on other sites
Guest   
Guest

vladimirtrajkovic, thank you for your purchase and detailed request.

 

If I am understanding correctly, you will add PageTitle section to a category loop like http://htechnews.com/computers/ (it is not displaying on there at this time) and then it'll be on all the category loops.

 

http://www.pagelines.com/wp-content/uploads/2013/10/4-PageTitle-DMS-Global-Special-Pages-Automatic-Titles-Overrides.png and http://www.pagelines.com/wp-content/uploads/2013/10/5-PageTitle-DMS-Global-Special-Pages-Automatic-Subtitles-Overrides.png are screenshots of the options to change the Global Settings options for PageTitle

 

You can see that there is NOT an option to have the automatic category name in the Title but only in the Sub-Title.

 

If I am understanding correctly, you'd want the Title (not the Sub-Title) to display the category name, correct?

 

If yes, any reason Sub-Title display isn't sufficient for you?

 

tyvm

Share this post


Link to post
Share on other sites
vladimirtrajkovic    1
vladimirtrajkovic

Hi CliffordP,

 

Thanks for your prompt response. No, I don't mind having sub-titles instead of titles. They are sufficient but only if I can remove the sentence that comes before the category name. Is it possible to make the Sub-title just the category name i.e. Computers instead 22 posts in "Computers", or Smartphones instead of 54 posts in "Smartphones"?

 

This is something that I could not succeed in overriding. Could you help me here?

 

Thanks,

Vladimir

Share this post


Link to post
Share on other sites
Guest   
Guest

Got it.

 

Would you want it the same for all Sub-Titles (blog, author, category, tag, taxonomy, date, and other), or only for the category Sub-Titles?

Share this post


Link to post
Share on other sites
vladimirtrajkovic    1
vladimirtrajkovic

Well, at the moment I don't need it. But it would be nice if there is an option to override the text that precede the main content in all sub-titles. i think it is nice utility for the plugin, which btw is awesome, especially for us, amateurs, which are not that or if not at all code familiar.

Thanks,

Vladimir

Share this post


Link to post
Share on other sites
Guest   
Guest

I have released v2.3. It adds quite a few CSS Classes to allow you to target them as you please. For example, CSS' display:none;

 

Please let me know if this provides you the customizability you're looking for.

 

tyvm for the kind words regarding my PageTitle section.

Share this post


Link to post
Share on other sites
vladimirtrajkovic    1
vladimirtrajkovic

Hi,

 

Thanks for your quick reaction. Since I am not good in coding, as I've mentioned, could you tell me what and where to write in order to change subtitle "7posts in Computers" to just "Computers", and so on on each page?

 

Thanks,

Vladimir

Share this post


Link to post
Share on other sites
vladimirtrajkovic    1
vladimirtrajkovic

Yep, I did it! Thanks! Could you just tell me how to avoid quotation marks? I know that I am bothering you but pls. for your help

 

So now I have subtitle as "Computers", and I would like to have Computers or COMPUTERS, w/o quotation marks.

 

Regards,

V

Share this post


Link to post
Share on other sites
Guest   
Guest

I've updated PageTitle to v2.4. The changelog for this version reads:

v2.4: Now you can set if you want quotes or something else around certain Special Pages' subtitles (for things like Category Archive view). Default used to be double-quotes; now is nothing but you can add it back via the new options in the Global/Site Settings area if you choose. Also re-arranged/re-grouped some of the Global/Site Settings (but only added those 2 new before/after text options and didn't remove any other options).
 
Please write back to confirm if your issue is resolved after updating to v2.4.
 
tyvm for using my PageTitle section.

Share this post


Link to post
Share on other sites
vladimirtrajkovic    1
vladimirtrajkovic

Hi Clifford,

 

Thanks a lot! This is exactly what was I looking for. Thanks a million again!

 

Best Regards,

Vladimir

  • Like 1

Share this post


Link to post
Share on other sites

  • Similar Content

    • King Creative Design
      By King Creative Design+
      WordPress 4.2.2
      DMS2 Version: 2.1.9.3
      Skeleton theme

      Site URL - http://newsite.ocdla.com

      1.) I'm working with the Page Title Section and it looks like it might do what I want it to do, but if so I can't figure out which settings to use.

      2.) I have the Page Title section set up on the 'default page template', which i'm using for most pages on this site, as they all have the same layout.

      3.) I need every page to have a different title (obviously, hence why I'm using the section) but I want them to be different from what the page title is in the actual WP page doc. I see that there is there is an override in the DMS editor for this section, however when I change it, it changes all pages globally. Is there a way to do this so every page can have it's own separate overridable title?
       
      4.) Currently it appears how I want it to because I have done a workaround by naming the WP pages (from within the WP dash) what I need them to say. The beauty of this workaround was that the client would not have to open the DMS editor to make changes to these titles and could edit them right from the WP dash, however I have discovered that it will mess with the site search function as well as not being ideas for SEO.
       
      5.) I'm open to using a different section to achieve this effect so If you have another solve or a different section that might work better, please let me know.
       
      Thanks in advance!

       
    • gavred
      By gavred+
      Hi Guys, 
       
      I wonder if you could help me. I'm trying to add a simple background graphic to a page title. (See attached.) 
      I know I could just create each graphic and add it to the top of each of page as an image, but I'm wondering if there's a better way? 
       
      If you have any suggestions I'd be very grateful. 
       
      For reference, the site i'm building is www.pjwalshlaw.com. 
       
      Thanks, 
      Gavin.
    • JamesEichen77
      By JamesEichen77
      I am working on http://kirbylaw.net/.   I am messing around with menus (using Ubermenu, client didn't like, put in JQ accordion menu, client didn't like, going back to Ubermenu) and now all of the sudden my page titles have disappeared.
       
      To be clear, this is not the title that would appear wrapped in an H1 tag in the "page" section, this is the title of the page than when you preview, you see it automatically pulled in as the h1....  apparently something I did broke that... ?
       
       
    • dreamsight
      By dreamsight+
      http://www.countyflatroofing.co.uk/wordpress/county-flat-roofing-privacy-policy/ white space under the pagetitle. When I inspect element I can see div's that I assume are creating the white space. How do I remove them?
       
      <div class="pl-section-controls fix"> <div class="controls-left"> <a title="" href="#" class="s-control s-control-icon section-decrease" data-original-title="Decrease Width"><i class="icon icon-caret-left"></i></a> <span title="" class="s-control section-size" data-original-title="Column Width">12/12</span> <a title="" href="#" class="s-control s-control-icon section-increase" data-original-title="Increase Width"><i class="icon icon-caret-right"></i></a> <a title="" href="#" class="s-control s-control-icon section-offset-reduce " data-original-title="Offset Left "><i class="icon icon-angle-double-left"></i></a> <span title="" class="s-control offset-size" data-original-title="Offset Amount">0</span> <a title="" href="#" class="s-control s-control-icon section-offset-increase " data-original-title="Offset Right "><i class="icon icon-angle-double-right"></i></a> <a title="" href="#" class="s-control s-control-icon section-start-row " data-original-title="Force to New Row "><i class="icon icon-level-down"></i></a> </div> <div class="controls-right"> <a title="" href="#" class="s-control s-control-icon section-edit s-loaded" data-original-title="Edit"><i class="icon icon-pencil"></i></a> <a title="" href="#" class="s-control s-control-icon section-clone s-loaded " data-original-title="Clone "><i class="icon icon-copy"></i></a> <a title="" href="#" class="s-control s-control-icon section-delete" data-original-title="Delete"><i class="icon icon-remove"></i></a> </div> </div>
    • damaca
      By damaca
      G'day Clifford,
       
      I am wanting to show the title of the category archive only. Is there a short code that I can use to achieve this?
       
      So instead of:
       
      Category Archive
      3 Posts in "CategoryName"
       
       
      I just want:
       
      "CategoryName"
       
       
      The [post_categories] short code works if all posts in the loop have a single category, but not when any posts have more than one. So that solution does not work in this instance. I'm guessing that I'm looking for a shortcode that displays the name of the page, but there seems to be no documentation for it.
×