Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #478409

    Hi everyone,

    I’m building dual-language website by url structuring as follows:
    English site: http://www.example.com
    2nd language site: http://www.example.com/2nd/

    I hope that I can force all the pages & posts with url containing “www.example.com/2nd/” to use another font family other than the one I selected in theme setting.

    #478464

    Hey!

    What’s your set-up for this? a plugin like WPML, Multisite or it is a completely different installation?

    Regards,
    Josue

    #478869

    Hi Josue,

    Thanks for reply.

    I use neither plugin nor new installation.

    I create a new page “http://www.example.com/2nd/” which is the descendant of homepage “http://www.example.com/”.

    #478967

    Hi!

    You could try something like this in Quick CSS:

    body.page-id-734{
        font-family: "ANOTHER FONT" !important;
    }

    734 would be the Page ID of “2nd”.

    Best regards,
    Josue

    #479024

    Is there a sleek method to select multiply pages with different page-id? Many thanks.

    #479032

    Hey!

    Yes, you can use the code as following

    body.page-id-734,body.page-id-59 {
        font-family: "ANOTHER FONT" !important;
    }

    Best regards,
    Yigit

    #479413

    Thx for update, I have input it. However, the font-family style can’t apply on AV Special Heading. May I have you further help?

    #479459

    Hey!

    Try:

    body.page-id-734 *,
    body.page-id-59 *{
        font-family: "ANOTHER FONT" !important;
    }

    Cheers!
    Josue

    #479499

    Thanks, it works.

    #479504

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.