Search found 9 matches

by CCDzine
Thu Oct 26, 2023 9:39 pm
Forum: Themes
Topic: Change site URL inside the theme (BlogX)
Replies: 1
Views: 1313

Re: Change site URL inside the theme (BlogX)

Instead of `Theme::siteUrl()` in navbar.php try...

Code: Select all

echo $site->url();
by CCDzine
Tue Oct 24, 2023 12:57 am
Forum: General
Topic: Delete a folder image in a article
Replies: 5
Views: 1718

Re: Delete a folder image in a article

Maybe this bug is a feature of Bludit Pro & Time machine plugin.
by CCDzine
Mon Oct 02, 2023 12:02 pm
Forum: Themes
Topic: Change Font in Massively theme
Replies: 3
Views: 504

Re: Change Font in Massively theme

Did you do a hard refresh in the browser to replace the cached stylesheet?
by CCDzine
Fri Sep 22, 2023 7:46 pm
Forum: Themes
Topic: popeye theme text width in blog posts
Replies: 7
Views: 834

Re: popeye theme text width in blog posts

Did you put it in a style element?

Code: Select all

<style>
    @media (min-width: 992px) {
        .col-lg-6 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 75%;
    }
}
</style>
by CCDzine
Thu Sep 21, 2023 5:41 pm
Forum: Themes
Topic: popeye theme text width in blog posts
Replies: 7
Views: 834

Re: popeye theme text width in blog posts

The width comes from the Bootstrap stylesheet.

Code: Select all

@media (min-width: 992px) {
  .col-lg-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}
Change instances of '50%' to what you like. Or better to override with your own, additional stylesheet.of a style block in the <head>.
by CCDzine
Mon Sep 18, 2023 3:51 pm
Forum: Themes
Topic: How to get blog slug name?
Replies: 4
Views: 907

Re: How to get blog slug name?

Try getting the field value. $site->getField( 'uriBlog' ); . This is what I do to use the slug as the menu entry... $blog_uri = $site->getField( 'uriBlog' ); if ( ! empty( $blog_uri ) ) { // Use sprintf() if you need to echo later. printf( '<li><a href="%s">%s</a></li>', $site->url() . str...
by CCDzine
Wed Sep 13, 2023 3:41 am
Forum: General
Topic: Bludit v4 - Alpha version
Replies: 30
Views: 42650

Re: Bludit v4 - Alpha version

<?php if(!isset($_GET['page'])){ $getPage = 1; } else { $getPage = $_GET['page']; } ?> <ul class="list-group flex-md-row"> <?php if($getPage != 1) { ?> <li class="list-group-item"> <a class="btn btn-dark" href="<?php echo Theme::siteUrl(); ?>?page=1">First</a...
by CCDzine
Tue Sep 12, 2023 3:35 pm
Forum: Languages
Topic: Translate Formatted Strings
Replies: 2
Views: 607

Re: Translate Formatted Strings

Thank you. That got me thinking about it the other way around. I ended up with...

Code: Select all

$string = $L->get( 'default-string' );
if ( strstr( $L->get( 'replace-string' ), '%replace%' ) ) {
	$string = str_replace( '%replace%', my_function(), $L->get( 'replace-string' ) );
}
by CCDzine
Sun Sep 10, 2023 2:16 am
Forum: Languages
Topic: Translate Formatted Strings
Replies: 2
Views: 607

Translate Formatted Strings

Hi, folks. I am new here, WordPress/ClassicPress guy that learned about Bludit six days ago. I am building a theme and I would like to know the best way to handle the translation of strings output by s/printf() functions. Example: $string = sprintf( $L->get( 'My string with %s a function in the midd...